MapExpGetByValue Method

Create expression that selects map items identified by value and returns selected data specified by returnType.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Exp GetByValue(
	MapReturnType returnType,
	Exp value,
	Exp bin,
	params CTX[] ctx
)

Parameters

returnType  MapReturnType
metadata attributes to return. See MapReturnType
value  Exp
value expression
bin  Exp
bin or map value expression
ctx  CTX
optional context path for nested CDT

Return Value

Exp

Example

C#
// Map bin "a" contains value "BBB"
Exp.GT(
  MapExp.GetByValue(MapReturnType.COUNT, Exp.Val("BBB"), Exp.MapBin("a")),
  Exp.Val(0))

See Also