ExpCount Method

Create expression that returns count of integer bits that are set to 1. Requires server version 5.6.0+.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Exp Count(
	Exp exp
)

Parameters

exp  Exp
 

Return Value

Exp

Example

C#
// count(a) == 4
Exp.EQ(
  Exp.Count(Exp.IntBin("a")),
  Exp.Val(4));

See Also