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
Modifier and TypeFieldDescriptionstatic final int
Return count of items selected.static final int
Return true if count > 0.static final int
Return index offset order.static final int
Invert meaning of list command and return values.static final int
Do not return a result.static final int
Return value order.static final int
Return reverse index offset order.static final int
Return reverse value order.static final int
Return value for single key read and value list for range read. -
Constructor Summary
-
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()
-