Package org.apache.flink.runtime.metrics
Class DescriptiveStatisticsHistogramStatistics
- java.lang.Object
-
- org.apache.flink.metrics.HistogramStatistics
-
- org.apache.flink.runtime.metrics.DescriptiveStatisticsHistogramStatistics
-
- All Implemented Interfaces:
Serializable
public class DescriptiveStatisticsHistogramStatistics extends HistogramStatistics implements Serializable
DescriptiveStatistics histogram statistics implementation returned byDescriptiveStatisticsHistogram
.The statistics takes a point-in-time snapshot of a
DescriptiveStatistics
instance and allows optimised metrics retrieval from this.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescriptiveStatisticsHistogramStatistics(double[] values)
DescriptiveStatisticsHistogramStatistics(org.apache.flink.runtime.metrics.DescriptiveStatisticsHistogram.CircularDoubleArray histogramValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getMax()
Returns the maximum value of the histogram.double
getMean()
Returns the mean of the histogram values.long
getMin()
Returns the minimum value of the histogram.double
getQuantile(double quantile)
Returns the value for the given quantile based on the represented histogram statistics.double
getStdDev()
Returns the standard deviation of the distribution reflected by the histogram statistics.long[]
getValues()
Returns the elements of the statistics' sample.int
size()
Returns the size of the statistics' sample.
-
-
-
Constructor Detail
-
DescriptiveStatisticsHistogramStatistics
public DescriptiveStatisticsHistogramStatistics(org.apache.flink.runtime.metrics.DescriptiveStatisticsHistogram.CircularDoubleArray histogramValues)
-
DescriptiveStatisticsHistogramStatistics
public DescriptiveStatisticsHistogramStatistics(double[] values)
-
-
Method Detail
-
getQuantile
public double getQuantile(double quantile)
Description copied from class:HistogramStatistics
Returns the value for the given quantile based on the represented histogram statistics.- Specified by:
getQuantile
in classHistogramStatistics
- Parameters:
quantile
- Quantile to calculate the value for- Returns:
- Value for the given quantile
-
getValues
public long[] getValues()
Description copied from class:HistogramStatistics
Returns the elements of the statistics' sample.- Specified by:
getValues
in classHistogramStatistics
- Returns:
- Elements of the statistics' sample
-
size
public int size()
Description copied from class:HistogramStatistics
Returns the size of the statistics' sample.- Specified by:
size
in classHistogramStatistics
- Returns:
- Size of the statistics' sample
-
getMean
public double getMean()
Description copied from class:HistogramStatistics
Returns the mean of the histogram values.- Specified by:
getMean
in classHistogramStatistics
- Returns:
- Mean of the histogram values
-
getStdDev
public double getStdDev()
Description copied from class:HistogramStatistics
Returns the standard deviation of the distribution reflected by the histogram statistics.- Specified by:
getStdDev
in classHistogramStatistics
- Returns:
- Standard deviation of histogram distribution
-
getMax
public long getMax()
Description copied from class:HistogramStatistics
Returns the maximum value of the histogram.- Specified by:
getMax
in classHistogramStatistics
- Returns:
- Maximum value of the histogram
-
getMin
public long getMin()
Description copied from class:HistogramStatistics
Returns the minimum value of the histogram.- Specified by:
getMin
in classHistogramStatistics
- Returns:
- Minimum value of the histogram
-
-