public class HyperBitBit extends Object implements ICardinality
| Constructor and Description |
|---|
HyperBitBit()
Create a new HyperBitBit instance.
|
| 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() |
public HyperBitBit()
public boolean offer(Object o)
offer in interface ICardinalityo - stream elementpublic boolean offerHashed(long hashedLong)
ICardinalityofferHashed in interface ICardinalityhashedLong - - the hash of the item to offer to the estimatorpublic boolean offerHashed(int hashedInt)
ICardinalityofferHashed in interface ICardinalityhashedInt - - the hash of the item to offer to the estimatorpublic long cardinality()
cardinality in interface ICardinalitypublic int sizeof()
sizeof in interface ICardinalitypublic byte[] getBytes()
throws IOException
getBytes in interface ICardinalityIOExceptionpublic ICardinality merge(ICardinality... estimators) throws CardinalityMergeException
ICardinalitymerge in interface ICardinalityestimators - Zero or more compatible estimatorsCardinalityMergeException - If at least one of the estimators is not compatible with this oneCopyright © 2018 AddThis. All rights reserved.