ListExpGetByValue Method

Create expression that selects list 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(
	ListReturnType returnType,
	Exp value,
	Exp bin,
	params CTX[] ctx
)

Parameters

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

Return Value

Exp

Example

C#
// List bin "a" contains at least one item == "abc"
Exp.GT(
  ListExp.GetByValue(ListReturnType.COUNT, Exp.Val("abc"), Exp.ListBin("a")),
  Exp.Val(0))

See Also