Interface HLLRepresentation
- All Known Implementing Classes:
CompactSet,ExplicitSet
public interface HLLRepresentation
The base class for the HyperLogLog representations.
- Since:
- 15.0
-
Method Summary
Modifier and TypeMethodDescriptionlongEstimates the cardinality of the set.booleanset(byte[] data) Add the given to the representation set.
-
Method Details
-
set
boolean set(byte[] data) Add the given to the representation set.- Parameters:
data- : The data to include.- Returns:
- true if the data was added, and false otherwise.
-
cardinality
long cardinality()Estimates the cardinality of the set.- Returns:
- An estimation of the real cardinality.
-