Skip to main content
Loading

HyperLogLog Bin Operations

Applies HyperLogLog (HLL) operations to a hll_bin.

HLL Modify Operations

hll_add

Introduced: 5.2.0.4

hll_add(policy, values, index_bit_count, bin)

Invokes the add operation.

Arguments:
  • policy (library_specific)
  • values (list_expr)
  • index_bit_count (integer_expr)
  • bin (hll_bin_expr)

Returns: (hll_bin)

hll_add_mh

Introduced: 5.2.0.4

hll_add_mh(policy, values, index_bit_count, minhash_bit_count, bin)

Invokes the add_mh operation.

Arguments:
  • policy (library_specific)
  • values (list_expr)
  • index_bit_count (integer_expr)
  • minhash_bit_count (integer_expr)
  • bin (hll_bin_expr)

Returns: (hll_bin)

hll_update

Introduced: 5.2.0.4

hll_update(policy, values, bin)

Invokes the update operation.

Arguments:
  • policy (library_specific)
  • values (list_expr)
  • bin (hll_bin_expr)

Returns: (hll_bin)

HLL Read Operations

hll_describe

Introduced: 5.2.0.4

hll_describe(bin)

Invokes the describe operation.

Arguments:
  • bin (hll_bin_expr)

Returns: (list_bin)

hll_get_count

Introduced: 5.2.0.4

hll_get_count(bin)

Invokes the get_count operation.

Arguments:
  • bin (hll_bin_expr)

Returns: (integer_bin)

hll_get_intersect_count

Introduced: 5.2.0.4

hll_get_intersect_count(hll_list, bin)

Invokes the get_intersect_count operation.

Arguments:
  • hll_list (list_expr)
  • bin (hll_bin_expr)

Returns: (integer_bin)

hll_get_similarity

Introduced: 5.2.0.4

hll_get_similarity(hll_list, hll_bin_expr)

Invokes the get_similarity operation.

Arguments:
  • hll_list (list_expr)
  • hll_bin_expr (hll_bin_expr)

Returns: (float_bin)

hll_get_union

Introduced: 5.2.0.4

hll_get_union(hll_list, bin)

Invokes the get_union operation.

Arguments:
  • hll_list (list_expr)
  • bin (hll_bin_expr)

Returns: (hll_bin)

hll_get_union_count

Introduced: 5.2.0.4

hll_get_union_count(hlls, bin)

Invokes the get_union_count operation.

Arguments:
  • hlls (list_expr)
  • bin (hll_bin_expr)

Returns: (integer_bin)

hll_may_contain

Introduced: 5.2.0.4

hll_may_contain(values, bin)

Operation on bin that returns 1 if bin may contain all elements in the values list, otherwise returns 0.

Arguments:
  • values (list_expr)
  • bin (hll_bin_expr)

Returns: (integer_bin)