ListOperationGetByValueRelativeRankRange(String, Value, Int32, Int32, ListReturnType, CTX) Method

Create list get by value relative to rank range operation. Server selects list items nearest to value and greater by relative rank with a count limit. Server returns selected data specified by returnType.

Examples for ordered list [0,4,5,9,11,15]:

  • (value,rank,count) = [selected items]
  • (5,0,2) = [5,9]
  • (5,1,1) = [9]
  • (5,-1,2) = [4,5]
  • (3,0,1) = [4]
  • (3,3,7) = [11,15]
  • (3,-3,2) = []

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Operation GetByValueRelativeRankRange(
	string binName,
	Value value,
	int rank,
	int count,
	ListReturnType returnType,
	params CTX[] ctx
)

Parameters

binName  String
 
value  Value
 
rank  Int32
 
count  Int32
 
returnType  ListReturnType
 
ctx  CTX
 

Return Value

Operation

See Also