Package com.aerospike.client.cdt
Class ListReturnType
java.lang.Object
com.aerospike.client.cdt.ListReturnType
List return type. Type of data to return when selecting or removing items from the list.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intReturn count of items selected.static final intReturn true if count > 0.static final intReturn index offset order.static final intInvert meaning of list command and return values.static final intDo not return a result.static final intReturn value order.static final intReturn reverse index offset order.static final intReturn reverse value order.static final intReturn value for single key read and value list for range read. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NONE
public static final int NONEDo not return a result.- See Also:
-
INDEX
public static final int INDEXReturn index offset order.- 0 = first key
- N = Nth key
- -1 = last key
- See Also:
-
REVERSE_INDEX
public static final int REVERSE_INDEXReturn reverse index offset order.- 0 = last key
- -1 = first key
- See Also:
-
RANK
public static final int RANKReturn value order.- 0 = smallest value
- N = Nth smallest value
- -1 = largest value
- See Also:
-
REVERSE_RANK
public static final int REVERSE_RANKReturn reverse value order.- 0 = largest value
- N = Nth largest value
- -1 = smallest value
- See Also:
-
COUNT
public static final int COUNTReturn count of items selected.- See Also:
-
VALUE
public static final int VALUEReturn value for single key read and value list for range read.- See Also:
-
EXISTS
public static final int EXISTSReturn true if count > 0.- See Also:
-
INVERTED
public static final int INVERTEDInvert meaning of list command and return values. For example:
With the INVERTED flag enabled, the items outside of the specified index range will be removed and returned.ListOperation.removeByIndexRange(binName, index, count, ListReturnType.VALUE | ListReturnType.INVERTED);- See Also:
-
-
Constructor Details
-
ListReturnType
public ListReturnType()
-