MapExpGetByKey Method

Aerospike
Create expression that selects map item identified by key 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 GetByKey(
	MapReturnType returnType,
	ExpType valueType,
	Exp key,
	Exp bin,
	params CTX[] ctx
)

Parameters

returnType
Type: Aerospike.ClientMapReturnType
metadata attributes to return. See MapReturnType
valueType
Type: Aerospike.ClientExpType
expected type of return value
key
Type: Aerospike.ClientExp
map key expression
bin
Type: Aerospike.ClientExp
bin or map value expression
ctx
Type: Aerospike.ClientCTX
optional context path for nested CDT

Return Value

Type: Exp
Examples

// Map bin "a" contains key "B"
Exp.GT(
  MapExp.GetByKey(MapReturnType.COUNT, Type.INT, Exp.Val("B"), Exp.MapBin("a")),
  Exp.Val(0));
See Also

Reference