Class FastLongHistogram.Bins
java.lang.Object
org.apache.hadoop.hbase.metrics.impl.FastLongHistogram.Bins
- Enclosing class:
- FastLongHistogram
Bins is a class containing a list of buckets(or bins) for estimation histogram of some data.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
private final long
private final long
private final LongAdder
private final LongAdder[]
private boolean
private final AtomicLong
private final AtomicLong
private final LongAdder
-
Constructor Summary
ConstructorDescriptionBins
(int numBins) The constructor for creating a Bins without any prior data.Bins
(FastLongHistogram.Bins last, int numBins, double minQ, double maxQ) The constructor for creating a Bins with last Bins. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(long value, long count) Adds a value to the histogram.private LongAdder[]
createCounters
(int numBins) private int
getIndex
(long value) long
getMean()
long
getMin()
(package private) long
getNumAtOrBelow
(long val) long[]
getQuantiles
(double[] quantiles) Computes the quantiles give the ratios.
-
Field Details
-
counts
-
binsMin
-
binsMax
-
bins10XMax
-
min
-
max
-
count
-
total
-
hasData
-
-
Constructor Details
-
Bins
The constructor for creating a Bins without any prior data. -
Bins
The constructor for creating a Bins with last Bins.
-
-
Method Details
-
createCounters
-
getIndex
-
add
Adds a value to the histogram. -
getQuantiles
Computes the quantiles give the ratios. -
getNumAtOrBelow
-
getMin
-
getMean
-