CTX Class

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.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.3.0+ce4f0b6532a6a09537fffcf84d41de9c9c921c0a
C#
public sealed class CTX
Inheritance
Object    CTX

Methods

FromBase64 Deserialize base64 encoded string to context array.
FromBytes Deserialize bytes to context array.
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.

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.
MapRank Lookup map by rank.
  • 0 = smallest value
  • N = Nth smallest value
  • -1 = largest value
MapValue Lookup map by value.
ToBase64 Serialize context array to base64 encoded string.
ToBytes Serialize context array to bytes.

Fields

See Also