Method: Aerospike::Exp::Map.get_by_value_range
- Defined in:
- lib/aerospike/exp/exp_map.rb
permalink .get_by_value_range(return_type, valueBegin, valueEnd, bin, ctx: nil) ⇒ Object
Create expression that selects map items identified by value range (valueBegin inclusive, valueEnd exclusive) If valueBegin is nil, the range is less than valueEnd. If valueEnd is nil, the range is greater than equal to valueBegin.
Expression returns selected data specified by return_type (See MapReturnType).
363 364 365 366 |
# File 'lib/aerospike/exp/exp_map.rb', line 363 def self.get_by_value_range(return_type, valueBegin, valueEnd, bin, ctx: nil) bytes = Exp::List.pack_range_operation(GET_BY_VALUE_INTERVAL, return_type, valueBegin, valueEnd, ctx) add_read(bin, bytes, get_value_type(return_type)) end |