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

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

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

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

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Operation RemoveByKeyRelativeIndexRange(
	string binName,
	Value key,
	int index,
	int count,
	MapReturnType returnType,
	params CTX[] ctx
)

Parameters

binName  String
 
key  Value
 
index  Int32
 
count  Int32
 
returnType  MapReturnType
 
ctx  CTX
 

Return Value

Operation

See Also