MapOperationRemoveByValueRelativeRankRange Method

Aerospike
Overload List

  NameDescription
Public methodStatic memberRemoveByValueRelativeRankRange(String, Value, Int32, MapReturnType, CTX)
Create map remove by value relative to rank range operation. Server removes map items nearest to value and greater by relative rank. Server returns removed data specified by returnType.

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

  • (value,rank) = [removed items]
  • (11,1) = [{0=17}]
  • (11,-1) = [{9=10},{5=15},{0=17}]

Public methodStatic memberRemoveByValueRelativeRankRange(String, Value, Int32, Int32, MapReturnType, CTX)
Create map remove by value relative to rank range operation. Server removes map items nearest to value and greater by relative rank with a count limit. Server returns removed data specified by returnType.

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

  • (value,rank,count) = [removed items]
  • (11,1,1) = [{0=17}]
  • (11,-1,1) = [{9=10}]

Top
See Also

Reference