ListExpGetByIndex Method
Create expression that selects list item identified by index and returns
selected data specified by returnType.
Namespace: Aerospike.ClientAssembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
public static Exp GetByIndex(
ListReturnType returnType,
ExpType valueType,
Exp index,
Exp bin,
params CTX[] ctx
)
- returnType ListReturnType
- metadata attributes to return. See ListReturnType
- valueType ExpType
- expected type of return value
- index Exp
- list index expression
- bin Exp
- list bin or list value expression
- ctx CTX
- optional context path for nested CDT
Exp // a[3] == 5
Exp.EQ(
ListExp.GetByIndex(ListReturnType.VALUE, Type.INT, Exp.Val(3), Exp.ListBin("a")),
Exp.Val(5));