Package com.aerospike.client.cdt
Class CTX
java.lang.Object
com.aerospike.client.cdt.CTX
Nested CDT context. Identifies the location of nested list/map to apply the operation.
for the current level. An array of CTX identifies location of the list/map on multiple
levels on nesting.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CTX[]
fromBase64
(String base64) Deserialize base64 encoded string to context array.static CTX[]
fromBytes
(byte[] bytes) Deserialize bytes to context array.static CTX
listIndex
(int index) Lookup list by index offset.static CTX
listIndexCreate
(int index, ListOrder order, boolean pad) Lookup list by base list's index offset.static CTX
listRank
(int rank) Lookup list by rank.static CTX
Lookup list by value.static CTX
mapIndex
(int index) Lookup map by index offset.static CTX
Lookup map by key.static CTX
mapKeyCreate
(Value key, MapOrder order) Lookup map by base map's key.static CTX
mapRank
(int rank) Lookup map by rank.static CTX
Lookup map by value.static String
Serialize context array to base64 encoded string.static byte[]
Serialize context array to bytes.
-
Field Details
-
id
public final int id -
value
-
-
Method Details
-
listIndex
Lookup list by index offset.If the index is negative, the resolved index starts backwards from end of list. If an index is out of bounds, a parameter error will be returned. Examples:
- 0: First item.
- 4: Fifth item.
- -1: Last item.
- -3: Third to last item.
-
listIndexCreate
Lookup list by base list's index offset. If the list at index offset is not found, create it with the given sort order at that index offset. If pad is true and the index offset is greater than the bounds of the base list, nil entries will be inserted before the newly created list. -
listRank
Lookup list by rank.- 0 = smallest value
- N = Nth smallest value
- -1 = largest value
-
listValue
Lookup list by value. -
mapIndex
Lookup map by index offset.If the index is negative, the resolved index starts backwards from end of list. If an index is out of bounds, a parameter error will be returned. Examples:
- 0: First item.
- 4: Fifth item.
- -1: Last item.
- -3: Third to last item.
-
mapRank
Lookup map by rank.- 0 = smallest value
- N = Nth smallest value
- -1 = largest value
-
mapKey
Lookup map by key. -
mapKeyCreate
Lookup map by base map's key. If the map at key is not found, create it with the given sort order at that key. -
mapValue
Lookup map by value. -
toBytes
Serialize context array to bytes. -
fromBytes
Deserialize bytes to context array. -
toBase64
Serialize context array to base64 encoded string. -
fromBase64
Deserialize base64 encoded string to context array.
-