Class: Aerospike::QueryPolicy
- Inherits:
-
BatchPolicy
- Object
- Policy
- BatchPolicy
- 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.
Attributes inherited from BatchPolicy
#max_concurrent_nodes, #record_queue_size, #wait_until_migrations_are_over
Attributes inherited from Policy
#consistency_level, #max_retries, #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.
25 26 27 28 29 30 31 32 33 |
# File 'lib/aerospike/policy/query_policy.rb', line 25 def initialize(opt={}) super(opt) @max_retries = 0 @include_bin_data = opt.fetch(:include_bin_data, true) self end |
Instance Attribute Details
#include_bin_data ⇒ Object
Returns the value of attribute include_bin_data.
23 24 25 |
# File 'lib/aerospike/policy/query_policy.rb', line 23 def include_bin_data @include_bin_data end |