Class: Aerospike::CDT::InvertibleListOp
- Inherits:
-
ListOperation
- Object
- Operation
- ListOperation
- Aerospike::CDT::InvertibleListOp
- Defined in:
- lib/aerospike/cdt/list_operation.rb
Constant Summary
Constants inherited from ListOperation
ListOperation::APPEND, ListOperation::APPEND_ITEMS, ListOperation::CLEAR, ListOperation::GET, ListOperation::GET_BY_INDEX, ListOperation::GET_BY_INDEX_RANGE, ListOperation::GET_BY_RANK, ListOperation::GET_BY_RANK_RANGE, ListOperation::GET_BY_VALUE, ListOperation::GET_BY_VALUE_INTERVAL, ListOperation::GET_BY_VALUE_LIST, ListOperation::GET_BY_VALUE_REL_RANK_RANGE, ListOperation::GET_RANGE, ListOperation::INCREMENT, ListOperation::INSERT, ListOperation::INSERT_ITEMS, ListOperation::POP, ListOperation::POP_RANGE, ListOperation::REMOVE, ListOperation::REMOVE_BY_INDEX, ListOperation::REMOVE_BY_INDEX_RANGE, ListOperation::REMOVE_BY_RANK, ListOperation::REMOVE_BY_RANK_RANGE, ListOperation::REMOVE_BY_VALUE, ListOperation::REMOVE_BY_VALUE_INTERVAL, ListOperation::REMOVE_BY_VALUE_LIST, ListOperation::REMOVE_BY_VALUE_REL_RANK_RANGE, ListOperation::REMOVE_RANGE, ListOperation::SET, ListOperation::SET_TYPE, ListOperation::SIZE, ListOperation::SORT, ListOperation::TRIM
Constants inherited from Operation
Operation::ADD, Operation::APPEND, Operation::BIT_MODIFY, Operation::BIT_READ, Operation::CDT_MODIFY, Operation::CDT_READ, Operation::DELETE, Operation::EXP_MODIFY, Operation::EXP_READ, Operation::HLL_MODIFY, Operation::HLL_READ, Operation::PREPEND, Operation::READ, Operation::READ_HEADER, Operation::TOUCH, Operation::WRITE
Instance Attribute Summary
Attributes inherited from ListOperation
#arguments, #ctx, #flag, #list_op, #policy, #return_type
Attributes inherited from Operation
#bin_name, #bin_value, #ctx, #op_type
Instance Method Summary collapse
-
#invert_selection ⇒ Object
Invert meaning of list command and return value.
- #invert_selection? ⇒ Boolean
Methods inherited from ListOperation
#and_return, append, #bin_value, clear, create, get, get_by_index, get_by_index_range, get_by_rank, get_by_rank_range, get_by_value, get_by_value_list, get_by_value_range, get_by_value_rel_rank_range, get_range, increment, #initialize, insert, pop, pop_range, remove, remove_by_index, remove_by_index_range, remove_by_rank, remove_by_rank_range, remove_by_value, remove_by_value_list, remove_by_value_range, remove_by_value_rel_rank_range, remove_range, set, set_order, size, sort, trim
Methods inherited from Operation
add, append, #bin, delete, get, get_header, #initialize, #is_write?, prepend, put, touch
Constructor Details
This class inherits a constructor from Aerospike::CDT::ListOperation
Instance Method Details
#invert_selection ⇒ Object
Invert meaning of list command and return value.
For example:
ListOperation.remove_by_index_range(binName, index, count)
.and_return(ListReturnType::VALUE)
.invert_selection
When calling invert_selection() on the list operation, the items outside the specified range will be removed and returned.
576 577 578 579 |
# File 'lib/aerospike/cdt/list_operation.rb', line 576 def invert_selection @invert_selection = !@invert_selection self end |
#invert_selection? ⇒ Boolean
581 582 583 |
# File 'lib/aerospike/cdt/list_operation.rb', line 581 def invert_selection? !!@invert_selection end |