Class HyperLogLogSketch

java.lang.Object
org.impulsegraph.storage.stats.HyperLogLogSketch

public class HyperLogLogSketch extends Object
Minimal zero-dependency HyperLogLog implementation for distinct count estimation.
  • Constructor Details

    • HyperLogLogSketch

      public HyperLogLogSketch(int p)
  • Method Details

    • offer

      public void offer(long hash)
    • offerString

      public void offerString(String val)
    • offerLong

      public void offerLong(long val)
    • estimate

      public long estimate()
    • merge

      public void merge(HyperLogLogSketch other)
    • union

      public void union(HyperLogLogSketch other)
    • getP

      public int getP()
    • getM

      public int getM()