ListExpGetByRank Method

Aerospike
Create expression that selects list item identified by rank and returns selected data specified by returnType.

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

C#
public static Exp GetByRank(
	ListReturnType returnType,
	ExpType valueType,
	Exp rank,
	Exp bin,
	params CTX[] ctx
)

Parameters

returnType
Type: Aerospike.ClientListReturnType
metadata attributes to return. See ListReturnType
valueType
Type: Aerospike.ClientExpType
expected type of return value
rank
Type: Aerospike.ClientExp
rank expression
bin
Type: Aerospike.ClientExp
list bin or list value expression
ctx
Type: Aerospike.ClientCTX
optional context path for nested CDT

Return Value

Type: Exp
Examples

// Player with lowest score.
ListExp.GetByRank(ListReturnType.VALUE, Type.STRING, Exp.Val(0), Exp.ListBin("a"))
See Also

Reference