Method: Aerospike::CDT::InvertibleListOp#invert_selection

Defined in:
lib/aerospike/cdt/list_operation.rb

#invert_selectionObject

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.

[View source]

576
577
578
579
# File 'lib/aerospike/cdt/list_operation.rb', line 576

def invert_selection
  @invert_selection = !@invert_selection
  self
end