Package org.apache.flink.metrics
Interface Histogram
-
- All Superinterfaces:
Metric
- All Known Implementing Classes:
DescriptiveStatisticsHistogram
,DropwizardHistogramWrapper
@Public public interface Histogram extends Metric
Histogram interface to be used with Flink's metrics system.The histogram allows to record values, get the current count of recorded values and create histogram statistics for the currently seen elements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description long
getCount()
Get the count of seen elements.default MetricType
getMetricType()
HistogramStatistics
getStatistics()
Create statistics for the currently recorded elements.void
update(long value)
Update the histogram with the given value.
-
-
-
Method Detail
-
update
void update(long value)
Update the histogram with the given value.- Parameters:
value
- Value to update the histogram with
-
getCount
long getCount()
Get the count of seen elements.- Returns:
- Count of seen elements
-
getStatistics
HistogramStatistics getStatistics()
Create statistics for the currently recorded elements.- Returns:
- Statistics about the currently recorded elements
-
getMetricType
default MetricType getMetricType()
- Specified by:
getMetricType
in interfaceMetric
-
-