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.ClientAssembly: AerospikeClient (in AerospikeClient.dll) Version: 4.0.3.0 (4.0.3)
Syntax
Parameters
- policy
- Type: Aerospike.Client HLLPolicy
write policy, use Default for default
- list
- Type: Aerospike.Client Exp
list bin or value expression of values to be added
- indexBitCount
- Type: Aerospike.Client Exp
number of index bits expression. Must be between 4 and 16 inclusive.
- minHashBitCount
- Type: Aerospike.Client Exp
number of min hash bits expression. Must be between 4 and 51 inclusive.
- bin
- Type: Aerospike.Client Exp
HLL bin or value expression
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