public interface HyperLogLog extends IdentifiedDataSerializable, Versioned
| Modifier and Type | Method and Description |
|---|---|
void |
add(long hash)
Aggregates the hash in the HyperLogLog registers.
|
void |
addAll(long[] hashes)
Batch aggregation of hash values in the HyperLogLog registers.
|
long |
estimate()
Computes a new estimate for the current status of the registers.
|
void |
merge(HyperLogLog other)
Merge the two HyperLogLog structures in one.
|
getFactoryId, getIdreadData, writeDatalong estimate()
void add(long hash)
hash - the value to aggregatevoid addAll(long[] hashes)
hashes - the hash values array to aggregatevoid merge(HyperLogLog other)
other - The second HLL to be merged into this oneCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.