Class: Aerospike::OperatePolicy

Inherits:
WritePolicy show all
Defined in:
lib/aerospike/policy/operate_policy.rb

Instance Attribute Summary collapse

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

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_multiplicityObject

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