HLLExpAdd(HLLPolicy, Exp, Exp, Exp, Exp) Method

Create expression that adds values to a HLL set and returns HLL set. If HLL bin does not exist, use indexBitCount and minHashBitCount to create HLL set.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Exp Add(
	HLLPolicy policy,
	Exp list,
	Exp indexBitCount,
	Exp minHashBitCount,
	Exp bin
)

Parameters

policy  HLLPolicy
write policy, use Default for default
list  Exp
list bin or value expression of values to be added
indexBitCount  Exp
number of index bits expression. Must be between 4 and 16 inclusive.
minHashBitCount  Exp
number of min hash bits expression. Must be between 4 and 51 inclusive. Also, indexBitCount + minHashBitCount must be <= 64.
bin  Exp
HLL bin or value expression

Return Value

Exp

Example

C#
// Add values to HLL bin "a" and check count > 7
Exp.GT(
  HLLExp.GetCount(
    HLLExp.Add(HLLPolicy.Default, Exp.Val(list), Exp.Val(10), Exp.Val(20), Exp.HLLBin("a"))),
  Exp.Val(7))

See Also