Class FastLongHistogram.Bins

java.lang.Object
org.apache.hadoop.hbase.metrics.impl.FastLongHistogram.Bins
Enclosing class:
FastLongHistogram

private static class FastLongHistogram.Bins extends Object
Bins is a class containing a list of buckets(or bins) for estimation histogram of some data.
  • Field Details

  • Constructor Details

    • Bins

      public Bins(int numBins)
      The constructor for creating a Bins without any prior data.
    • Bins

      public Bins(FastLongHistogram.Bins last, int numBins, double minQ, double maxQ)
      The constructor for creating a Bins with last Bins.
  • Method Details

    • createCounters

      private LongAdder[] createCounters(int numBins)
    • getIndex

      private int getIndex(long value)
    • add

      public void add(long value, long count)
      Adds a value to the histogram.
    • getQuantiles

      public long[] getQuantiles(double[] quantiles)
      Computes the quantiles give the ratios.
    • getNumAtOrBelow

      long getNumAtOrBelow(long val)
    • getMin

      public long getMin()
    • getMean

      public long getMean()