MapOperationGetByValueRelativeRankRange Method

Aerospike
Overload List

  NameDescription
Public methodStatic memberGetByValueRelativeRankRange(String, Value, Int32, MapReturnType, CTX)
Create map get by value relative to rank range operation. Server selects map items nearest to value and greater by relative rank. Server returns selected data specified by returnType.

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

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

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

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

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

Top
See Also

Reference