Class StatsSummarySnapshot
- java.lang.Object
-
- org.apache.flink.runtime.checkpoint.StatsSummarySnapshot
-
- All Implemented Interfaces:
Serializable
@Internal public class StatsSummarySnapshot extends Object implements Serializable
Immutable snapshot ofStatsSummary.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StatsSummarySnapshot(long min, long max, long sum, long count, org.apache.flink.metrics.HistogramStatistics histogram)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StatsSummarySnapshotempty()longgetAverage()Calculates the average over all seen values.longgetCount()Returns the count of all seen values.longgetMaximum()Returns the maximum seen value.longgetMinimum()Returns the minimum seen value.doublegetQuantile(double quantile)Returns the value for the given quantile based on the represented histogram statistics orDouble.NaNif the histogram was not built.longgetSum()Returns the sum of all seen values.
-
-
-
Method Detail
-
empty
public static StatsSummarySnapshot empty()
-
getMinimum
public long getMinimum()
Returns the minimum seen value.- Returns:
- The current minimum value.
-
getMaximum
public long getMaximum()
Returns the maximum seen value.- Returns:
- The current maximum value.
-
getSum
public long getSum()
Returns the sum of all seen values.- Returns:
- Sum of all values.
-
getCount
public long getCount()
Returns the count of all seen values.- Returns:
- Count of all values.
-
getAverage
public long getAverage()
Calculates the average over all seen values.- Returns:
- Average over all seen values.
-
getQuantile
public double getQuantile(double quantile)
Returns the value for the given quantile based on the represented histogram statistics orDouble.NaNif the histogram was not built.- Parameters:
quantile- Quantile to calculate the value for- Returns:
- Value for the given quantile
-
-