MapExpRemoveByKeyRelativeIndexRange Method

Aerospike
Overload List

  NameDescription
Public methodStatic memberRemoveByKeyRelativeIndexRange(Exp, Exp, Exp, CTX)
Create expression that removes map items nearest to key and greater by index.

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}]

Public methodStatic memberRemoveByKeyRelativeIndexRange(Exp, Exp, Exp, Exp, CTX)
Create expression that removes map items nearest to key and greater by index with a count limit.

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}]

Top
See Also

Reference