public class HyperLogLogPlusPlus extends Object
Constructor and Description |
---|
HyperLogLogPlusPlus(double relativeSD) |
Modifier and Type | Method and Description |
---|---|
double |
estimateBias(double e)
Estimate the bias using the raw estimates with their respective biases from the HLL++
appendix.
|
int |
getNumWords() |
void |
merge(HllBuffer buffer1,
HllBuffer buffer2)
Merge the HLL buffers by iterating through the registers in both buffers and select the
maximum number of leading zeros for each register.
|
long |
query(HllBuffer buffer)
Compute the HyperLogLog estimate.
|
double |
trueRsd()
The
rsd of HLL++ is always equal to or better than the rsd
requested. |
void |
updateByHashcode(HllBuffer buffer,
long hash)
Update the HLL++ buffer.
|
public int getNumWords()
public void updateByHashcode(HllBuffer buffer, long hash)
public void merge(HllBuffer buffer1, HllBuffer buffer2)
public double estimateBias(double e)
public long query(HllBuffer buffer)
Variable names in the HLL++ paper match variable names in the code.
public double trueRsd()
rsd
of HLL++ is always equal to or better than the rsd
requested. This method returns the rsd
this instance actually guarantees.rsd
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.