Package org.apache.flink.runtime.metrics
Class DescriptiveStatisticsHistogram
- java.lang.Object
-
- org.apache.flink.runtime.metrics.DescriptiveStatisticsHistogram
-
- All Implemented Interfaces:
Serializable
,Histogram
,Metric
public class DescriptiveStatisticsHistogram extends Object implements Histogram, Serializable
TheDescriptiveStatisticsHistogram
use a DescriptiveStatisticsDescriptiveStatistics
as a FlinkHistogram
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescriptiveStatisticsHistogram(int windowSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCount()
Get the count of seen elements.HistogramStatistics
getStatistics()
Create statistics for the currently recorded elements.void
update(long value)
Update the histogram with the given value.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.metrics.Histogram
getMetricType
-
-
-
-
Method Detail
-
update
public void update(long value)
Description copied from interface:Histogram
Update the histogram with the given value.
-
getCount
public long getCount()
Description copied from interface:Histogram
Get the count of seen elements.
-
getStatistics
public HistogramStatistics getStatistics()
Description copied from interface:Histogram
Create statistics for the currently recorded elements.- Specified by:
getStatistics
in interfaceHistogram
- Returns:
- Statistics about the currently recorded elements
-
-