ListExpGetByRank Method

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

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Exp GetByRank(
	ListReturnType returnType,
	ExpType valueType,
	Exp rank,
	Exp bin,
	params CTX[] ctx
)

Parameters

returnType  ListReturnType
metadata attributes to return. See ListReturnType
valueType  ExpType
expected type of return value
rank  Exp
rank expression
bin  Exp
list bin or list value expression
ctx  CTX
optional context path for nested CDT

Return Value

Exp

Example

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

See Also