Class: Aerospike::OperatePolicy
- Inherits:
-
WritePolicy
- Object
- Policy
- WritePolicy
- Aerospike::OperatePolicy
- Defined in:
- lib/aerospike/policy/operate_policy.rb
Instance Attribute Summary collapse
-
#record_bin_multiplicity ⇒ Object
Returns the value of attribute record_bin_multiplicity.
Attributes inherited from WritePolicy
#commit_level, #durable_delete, #generation, #generation_policy, #record_exists_action, #send_key, #ttl
Attributes inherited from Policy
#consistency_level, #fail_on_filtered_out, #filter_exp, #max_retries, #priority, #read_touch_ttl_percent, #replica, #sleep_between_retries, #socket_timeout, #timeout, #use_compression
Instance Method Summary collapse
-
#initialize(opt = {}) ⇒ OperatePolicy
constructor
A new instance of OperatePolicy.
Constructor Details
#initialize(opt = {}) ⇒ OperatePolicy
Returns a new instance of OperatePolicy.
25 26 27 28 29 30 31 |
# File 'lib/aerospike/policy/operate_policy.rb', line 25 def initialize(opt = {}) super(opt) # Specifies how to merge results from multiple operations returning # results for the same record bin. @record_bin_multiplicity = opt[:record_bin_multiplicity] || RecordBinMultiplicity::SINGLE end |
Instance Attribute Details
#record_bin_multiplicity ⇒ Object
Returns the value of attribute record_bin_multiplicity.
23 24 25 |
# File 'lib/aerospike/policy/operate_policy.rb', line 23 def record_bin_multiplicity @record_bin_multiplicity end |