public interface ICardinality
Modifier and Type | Method and Description |
---|---|
long |
cardinality() |
byte[] |
getBytes() |
ICardinality |
merge(ICardinality... estimators)
Merges estimators to produce a new estimator for the combined streams
of this estimator and those passed as arguments.
|
boolean |
offer(Object o) |
boolean |
offerHashed(int hashedInt)
Offer the value as a hashed long value
|
boolean |
offerHashed(long hashedLong)
Offer the value as a hashed long value
|
int |
sizeof() |
boolean offer(Object o)
o
- stream elementboolean offerHashed(long hashedLong)
hashedLong
- - the hash of the item to offer to the estimatorboolean offerHashed(int hashedInt)
hashedInt
- - the hash of the item to offer to the estimatorlong cardinality()
int sizeof()
byte[] getBytes() throws IOException
IOException
ICardinality merge(ICardinality... estimators) throws CardinalityMergeException
estimators
- Zero or more compatible estimatorsCardinalityMergeException
- If at least one of the estimators is not compatible with this oneCopyright © 2019. All rights reserved.