Method: Aerospike::Exp::List.get_by_value
- Defined in:
- lib/aerospike/exp/exp_list.rb
permalink .get_by_value(return_type, value, bin, ctx: nil) ⇒ Object
Create expression that selects list items identified by value and returns selected data specified by return_type.
Examples
# List bin “a” contains at least one item == “abc” Exp.gt(
ListExp.getByValue(CDT::ListReturnType::COUNT, Exp.val("abc"), Exp.listBin("a")),
Exp.val(0))
end</pre>
200 201 202 203 |
# File 'lib/aerospike/exp/exp_list.rb', line 200 def self.get_by_value(return_type, value, bin, ctx: nil) bytes = Exp.pack(ctx, GET_BY_VALUE, return_type, value) add_read(bin, bytes, get_value_type(return_type)) end |