MapOperationRemoveByKeyRelativeIndexRange Method (String, Value, Int32, MapReturnType, CTX)

Aerospike
Create map remove by key relative to index range operation. Server removes map items nearest to key and greater by index. Server returns removed data specified by returnType.

Examples for map [{0=17},{4=2},{5=15},{9=10}]:

  • (value,index) = [removed items]
  • (5,0) = [{5=15},{9=10}]
  • (5,1) = [{9=10}]
  • (5,-1) = [{4=2},{5=15},{9=10}]
  • (3,2) = [{9=10}]
  • (3,-2) = [{0=17},{4=2},{5=15},{9=10}]

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
public static Operation RemoveByKeyRelativeIndexRange(
	string binName,
	Value key,
	int index,
	MapReturnType returnType,
	params CTX[] ctx
)

Parameters

binName
Type: SystemString
key
Type: Aerospike.ClientValue
index
Type: SystemInt32
returnType
Type: Aerospike.ClientMapReturnType
ctx
Type: Aerospike.ClientCTX

Return Value

Type: Operation
See Also

Reference