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 migth 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.
|
getFactoryId, getId
readData, writeData
long estimate()
boolean add(long hash)
hash
- the value to aggregateint getMemoryFootprint()
com.hazelcast.cardinality.impl.hyperloglog.impl.HyperLogLogEncoding getEncodingType()
HyperLogLogEncoding
HyperLogLogEncoding
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.