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

Aerospike
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.

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
public static Exp Add(
	HLLPolicy policy,
	Exp list,
	Exp indexBitCount,
	Exp minHashBitCount,
	Exp bin
)

Parameters

policy
Type: Aerospike.ClientHLLPolicy
write policy, use Default for default
list
Type: Aerospike.ClientExp
list bin or value expression of values to be added
indexBitCount
Type: Aerospike.ClientExp
number of index bits expression. Must be between 4 and 16 inclusive.
minHashBitCount
Type: Aerospike.ClientExp
number of min hash bits expression. Must be between 4 and 51 inclusive.
bin
Type: Aerospike.ClientExp
HLL bin or value expression

Return Value

Type: Exp
Examples

// 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

Reference