Class: Aerospike::QueryPolicy
- Defined in:
- lib/aerospike/policy/query_policy.rb
Overview
Container object for query policy command.
Instance Attribute Summary collapse
-
#include_bin_data ⇒ Object
Returns the value of attribute include_bin_data.
-
#record_queue_size ⇒ Object
Returns the value of attribute record_queue_size.
Attributes inherited from Policy
#consistency_level, #fail_on_filtered_out, #max_retries, #predexp, #priority, #sleep_between_retries, #timeout
Instance Method Summary collapse
-
#initialize(opt = {}) ⇒ QueryPolicy
constructor
A new instance of QueryPolicy.
Constructor Details
#initialize(opt = {}) ⇒ QueryPolicy
Returns a new instance of QueryPolicy.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/aerospike/policy/query_policy.rb', line 28 def initialize(opt={}) super(opt) @max_retries = 0 # Indicates if bin data is retrieved. If false, only record digests (and # user keys if stored on the server) are retrieved. # Default is true. @include_bin_data = opt.fetch(:include_bin_data, true) # Number of records to place in queue before blocking. Records received # from multiple server nodes will be placed in a queue. A separate thread # consumes these records in parallel. If the queue is full, the producer # threads will block until records are consumed. # Default is 5000. @record_queue_size = opt[:record_queue_size] || 5000 self end |
Instance Attribute Details
#include_bin_data ⇒ Object
Returns the value of attribute include_bin_data.
25 26 27 |
# File 'lib/aerospike/policy/query_policy.rb', line 25 def include_bin_data @include_bin_data end |
#record_queue_size ⇒ Object
Returns the value of attribute record_queue_size.
26 27 28 |
# File 'lib/aerospike/policy/query_policy.rb', line 26 def record_queue_size @record_queue_size end |