@Internal public class StatsSummarySnapshot extends Object implements Serializable
StatsSummary
.Constructor and Description |
---|
StatsSummarySnapshot(long min,
long max,
long sum,
long count,
HistogramStatistics histogram) |
Modifier and Type | Method and Description |
---|---|
static StatsSummarySnapshot |
empty() |
long |
getAverage()
Calculates the average over all seen values.
|
long |
getCount()
Returns the count of all seen values.
|
long |
getMaximum()
Returns the maximum seen value.
|
long |
getMinimum()
Returns the minimum seen value.
|
double |
getQuantile(double quantile)
Returns the value for the given quantile based on the represented histogram statistics or
Double.NaN if the histogram was not built. |
long |
getSum()
Returns the sum of all seen values.
|
public StatsSummarySnapshot(long min, long max, long sum, long count, @Nullable HistogramStatistics histogram)
public static StatsSummarySnapshot empty()
public long getMinimum()
public long getMaximum()
public long getSum()
public long getCount()
public long getAverage()
public double getQuantile(double quantile)
Double.NaN
if the histogram was not built.quantile
- Quantile to calculate the value forCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.