Package com.aerospike.client.cdt
Class MapReturnType
java.lang.Object
com.aerospike.client.cdt.MapReturnType
Map return type. Type of data to return when selecting or removing items from the map.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Return count of items selected.static final int
Return true if count > 0.static final int
Return key index order.static final int
Invert meaning of map command and return values.static final int
Return key for single key read and key list for range read.static final int
Return key/value items.static final int
Do not return a result.static final int
Return an ordered map.static final int
Return value order.static final int
Return reverse key order.static final int
Return reverse value order.static final int
Return an unordered map.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 key index order.- 0 = first key
- N = Nth key
- -1 = last key
- See Also:
-
REVERSE_INDEX
public static final int REVERSE_INDEXReturn reverse key 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:
-
KEY
public static final int KEYReturn key for single key read and key list for range read.- See Also:
-
VALUE
public static final int VALUEReturn value for single key read and value list for range read.- See Also:
-
KEY_VALUE
public static final int KEY_VALUEReturn key/value items. The possible return types are:- HashMap : Returned for unordered maps
- TreeMap : Returned for key ordered maps
- List<Entry> : Returned for range results where range order needs to be preserved.
- See Also:
-
EXISTS
public static final int EXISTSReturn true if count > 0.- See Also:
-
UNORDERED_MAP
public static final int UNORDERED_MAPReturn an unordered map.- See Also:
-
ORDERED_MAP
public static final int ORDERED_MAPReturn an ordered map.- See Also:
-
INVERTED
public static final int INVERTEDInvert meaning of map command and return values. For example:
With the INVERTED flag enabled, the keys outside of the specified key range will be removed and returned.MapOperation.removeByKeyRange(binName, keyBegin, keyEnd, MapReturnType.KEY | MapReturnType.INVERTED);
- See Also:
-
-
Constructor Details
-
MapReturnType
public MapReturnType()
-