Class HyperLogLogSketch
java.lang.Object
org.impulsegraph.storage.stats.HyperLogLogSketch
Minimal zero-dependency HyperLogLog implementation for distinct count
estimation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongestimate()intgetM()intgetP()voidmerge(HyperLogLogSketch other) voidoffer(long hash) voidofferLong(long val) voidofferString(String val) voidunion(HyperLogLogSketch other)
-
Constructor Details
-
HyperLogLogSketch
public HyperLogLogSketch(int p)
-
-
Method Details
-
offer
public void offer(long hash) -
offerString
-
offerLong
public void offerLong(long val) -
estimate
public long estimate() -
merge
-
union
-
getP
public int getP() -
getM
public int getM()
-