Package org.apache.iceberg.metrics
Class FixedReservoirHistogram
- java.lang.Object
-
- org.apache.iceberg.metrics.FixedReservoirHistogram
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.iceberg.metrics.Histogram
Histogram.Statistics
-
-
Constructor Summary
Constructors Constructor Description FixedReservoirHistogram(int reservoirSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
count()
Return the number of observations.Histogram.Statistics
statistics()
Naive algorithm for calculating variance: https://en.wikipedia.org/wiki/Algorithms_for_calculating_variancevoid
update(long value)
Update the histogram with a new value observed.
-
-
-
Method Detail
-
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
public Histogram.Statistics statistics()
Naive algorithm for calculating variance: https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance- Specified by:
statistics
in interfaceHistogram
-
-