Class: Riak::Client::BeefcakeProtobuffsBackend::CrdtLoader::HyperLogLogLoader Private
- Inherits:
-
Object
- Object
- Riak::Client::BeefcakeProtobuffsBackend::CrdtLoader::HyperLogLogLoader
- Defined in:
- lib/riak/client/beefcake/crdt/hyper_log_log_loader.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .for_value(resp) ⇒ Object private
Instance Method Summary collapse
-
#initialize(hll_value) ⇒ HyperLogLogLoader
constructor
private
A new instance of HyperLogLogLoader.
- #rubyfy ⇒ Object private
Constructor Details
#initialize(hll_value) ⇒ HyperLogLogLoader
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of HyperLogLogLoader.
9 10 11 |
# File 'lib/riak/client/beefcake/crdt/hyper_log_log_loader.rb', line 9 def initialize(hll_value) @value = hll_value end |
Class Method Details
.for_value(resp) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4 5 6 7 |
# File 'lib/riak/client/beefcake/crdt/hyper_log_log_loader.rb', line 4 def self.for_value(resp) return nil unless resp.hll_value new resp.hll_value end |
Instance Method Details
#rubyfy ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/riak/client/beefcake/crdt/hyper_log_log_loader.rb', line 13 def rubyfy @value end |