Class HistogramImpl
java.lang.Object
org.apache.hadoop.hbase.metrics.impl.HistogramImpl
Custom histogram implementation based on FastLongHistogram. Dropwizard-based histograms are slow
compared to this implementation, so we are using our implementation here. See HBASE-15222.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionHistogramImpl(int numBins, long min, long maxExpected) HistogramImpl(long maxExpected) protectedHistogramImpl(CounterImpl counter, FastLongHistogram histogram) -
Method Summary
Modifier and TypeMethodDescriptionlonggetCount()Return the total number of values added to the histogram.longgetMax()longgetMin()long[]getQuantiles(double[] quantiles) snapshot()Snapshot the current values in the Histogramvoidupdate(int value) Adds a new value to the distribution.voidupdate(long value) Adds a new value to the distribution.
-
Field Details
-
histogram
-
counter
-
-
Constructor Details
-
HistogramImpl
public HistogramImpl() -
HistogramImpl
-
HistogramImpl
-
HistogramImpl
-
-
Method Details
-
update
Description copied from interface:HistogramAdds a new value to the distribution. -
update
Description copied from interface:HistogramAdds a new value to the distribution. -
getCount
Description copied from interface:HistogramReturn the total number of values added to the histogram. -
getMax
-
getMin
-
snapshot
Description copied from interface:HistogramSnapshot the current values in the Histogram -
getQuantiles
-