Create expression that selects list item identified by index 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 GetByIndex( ListReturnType returnType, ExpType valueType, Exp index, 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 - index
- Type: Aerospike.ClientExp
list index expression - bin
- Type: Aerospike.ClientExp
list bin or list value expression - ctx
- Type: Aerospike.ClientCTX
optional context path for nested CDT
Return Value
Type: ExpExamples
// a[3] == 5 Exp.EQ( ListExp.GetByIndex(ListReturnType.VALUE, Type.INT, Exp.Val(3), Exp.ListBin("a")), Exp.Val(5));
See Also