public interface HyperLogLogEncoder extends IdentifiedDataSerializable
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
add(long hash)
Aggregates the hash value in the HyperLogLog registers, and returns a hint if the
 operation might have affected the cardinality, it is just a hint, and it relies to
 the respective implementation. 
 | 
long | 
estimate()
Computes a new estimate for the current status of the registers. 
 | 
com.hazelcast.cardinality.impl.hyperloglog.impl.HyperLogLogEncoding | 
getEncodingType()
Returns the encoding type of this instance; see:  
HyperLogLogEncoding | 
int | 
getMemoryFootprint()
Returns the size in memory occupied (in bytes) for this implementation of HyperLogLog. 
 | 
HyperLogLogEncoder | 
merge(HyperLogLogEncoder encoder)
Merge the two HyperLogLog structures in one. 
 | 
getFactoryId, getIdreadData, writeDatalong estimate()
boolean add(long hash)
hash - the value to aggregateint getMemoryFootprint()
com.hazelcast.cardinality.impl.hyperloglog.impl.HyperLogLogEncoding getEncodingType()
HyperLogLogEncodingHyperLogLogEncodingHyperLogLogEncoder merge(HyperLogLogEncoder encoder)
encoder - The second HLL to be merged into this oneHyperLogLogEncoder the unionCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.