MapExpGetByValueRelativeRankRange Method (MapReturnType, Exp, Exp, Exp, Exp, CTX)

Aerospike
Create expression that selects map items nearest to value and greater by relative rank with a count limit. Expression 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}]

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

C#
public static Exp GetByValueRelativeRankRange(
	MapReturnType returnType,
	Exp value,
	Exp rank,
	Exp count,
	Exp bin,
	params CTX[] ctx
)

Parameters

returnType
Type: Aerospike.ClientMapReturnType
value
Type: Aerospike.ClientExp
rank
Type: Aerospike.ClientExp
count
Type: Aerospike.ClientExp
bin
Type: Aerospike.ClientExp
ctx
Type: Aerospike.ClientCTX

Return Value

Type: Exp
See Also

Reference