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
FieldsModifier and TypeFieldDescriptionprivate final longprivate final longprivate final longprivate final LongAdderprivate final LongAdder[]private booleanprivate final AtomicLongprivate final AtomicLongprivate final LongAdder -
Constructor Summary
ConstructorsConstructorDescriptionBins(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 TypeMethodDescriptionvoidadd(long value, long count) Adds a value to the histogram.private LongAdder[]createCounters(int numBins) private intgetIndex(long value) longgetMean()longgetMin()(package private) longgetNumAtOrBelow(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
-