Analytics
Also available as:
PDF

Approximation Statistics

Table 6.1. Approximation Statistics

FunctionDescriptionInputReturns
HLLP_ADDAdd value to the HyperLogLogPlus estimator set. See HLLP README.
  • hyperLogLogPlus - The hllp estimator to add a value to

  • value+ - Value to add to the set. Takes a single item or a list.

The HyperLogLogPlus set with a new value added
HLLP_CARDINALITYReturns HyperLogLogPlus-estimated cardinality for this set. See HLLP README.
  • hyperLogLogPlus - The hllp set

Long value representing the cardinality for this set
HLLP_INITInitializes the HyperLogLogPlus estimator set. p must be a value between 4 and sp and sp must be less than 32 and greater than 4. See HLLP README.
  • p - The precision value for the normal set

  • sp - The precision value for the sparse set. If p is set, but sp is 0 or not specified, the sparse set will be disabled.

A new HyperLogLogPlus set
HLLP_MERGEMerge hllp sets together. The resulting estimator is initialized with p and sp precision values from the first provided hllp estimator set. See HLLP README.
  • hllp - List of hllp estimators to merge. Takes a single hllp set or a list.

True if the filter might contain the value and false otherwise