HyperLogLog bin operations
Aerospike HyperLogLog (HLL) bin expressions allow you to perform HLL-specific operations in queries to manage HLL data structures for counting unique elements and estimating similarity.
This guide covers modify operations like hll_add
, hll_update
, and hll_add_mh
, and read operations like hll_get_count
, hll_get_intersect_count
, hll_get_similarity
, and hll_may_contain
.
Modify
hll_add(policy, values, index_bit_count, bin)
Description
Invokes the add operation.
Arguments
Name | Type |
---|---|
policy | library_specific |
values | list_expr |
index_bit_count | integer_expr |
bin | hll_bin_expr |
Returns
hll_bin
Introduced
5.2.0.4
hll_add_mh(policy, values, index_bit_count, minhash_bit_count, bin)
Description
Invokes the add_mh operation.
Arguments
Name | Type |
---|---|
policy | library_specific |
values | list_expr |
index_bit_count | integer_expr |
minhash_bit_count | integer_expr |
bin | hll_bin_expr |
Returns
hll_bin
Introduced
5.2.0.4
hll_update(policy, values, bin)
Description
Invokes the update operation.
Arguments
Name | Type |
---|---|
policy | library_specific |
values | list_expr |
bin | hll_bin_expr |
Returns
hll_bin
Introduced
5.2.0.4
Read
hll_describe(bin)
Description
Invokes the describe operation.
Arguments
Name | Type |
---|---|
bin | hll_bin_expr |
Returns
list_bin
Introduced
5.2.0.4
hll_get_count(bin)
Description
Invokes the get_count operation.
Arguments
Name | Type |
---|---|
bin | hll_bin_expr |
Returns
integer_bin
Introduced
5.2.0.4
hll_get_intersect_count(hll_list, bin)
Description
Invokes the get_intersect_count operation.
Arguments
Name | Type |
---|---|
hll_list | list_expr |
bin | hll_bin_expr |
Returns
integer_bin
Introduced
5.2.0.4
hll_get_similarity(hll_list, hll_bin_expr)
Description
Invokes the get_similarity operation.
Arguments
Name | Type |
---|---|
hll_list | list_expr |
hll_bin_expr | hll_bin_expr |
Returns
float_bin
Introduced
5.2.0.4
hll_get_union(hll_list, bin)
Description
Invokes the get_union operation.
Arguments
Name | Type |
---|---|
hll_list | list_expr |
bin | hll_bin_expr |
Returns
hll_bin
Introduced
5.2.0.4
hll_get_union_count(hlls, bin)
Description
Invokes the get_union_count operation.
Arguments
Name | Type |
---|---|
hlls | list_expr |
bin | hll_bin_expr |
Returns
integer_bin
Introduced
5.2.0.4