MapExpGetByKey Method
Create expression that selects map item identified by key and returns selected data
specified by returnType.
Namespace: Aerospike.ClientAssembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
public static Exp GetByKey(
MapReturnType returnType,
ExpType valueType,
Exp key,
Exp bin,
params CTX[] ctx
)
- returnType MapReturnType
- metadata attributes to return. See MapReturnType
- valueType ExpType
- expected type of return value
- key Exp
- map key expression
- bin Exp
- bin or map value expression
- ctx CTX
- optional context path for nested CDT
Exp // Map bin "a" contains key "B"
Exp.GT(
MapExp.GetByKey(MapReturnType.COUNT, Type.INT, Exp.Val("B"), Exp.MapBin("a")),
Exp.Val(0));