class Aerospike::CDT::InvertibleListOp

Public Instance Methods

invert_selection() click to toggle source

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.

# File lib/aerospike/cdt/list_operation.rb, line 576
def invert_selection
  @invert_selection = !@invert_selection
  self
end
invert_selection?() click to toggle source
# File lib/aerospike/cdt/list_operation.rb, line 581
def invert_selection?
  !!@invert_selection
end