Package org.apache.iceberg.metrics
Class FixedReservoirHistogram
java.lang.Object
org.apache.iceberg.metrics.FixedReservoirHistogram
- All Implemented Interfaces:
Histogram
A
Histogram
implementation with reservoir sampling.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.iceberg.metrics.Histogram
Histogram.Statistics
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
FixedReservoirHistogram
public FixedReservoirHistogram(int reservoirSize)
-
-
Method Details
-
count
public int count()Description copied from interface:Histogram
Return the number of observations. -
update
public void update(long value) Description copied from interface:Histogram
Update the histogram with a new value observed. -
statistics
Naive algorithm for calculating variance: https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance- Specified by:
statistics
in interfaceHistogram
-