Interface StatsAccumulator
-
- All Known Implementing Classes:
StatsAccumulatorImpl
@Internal @NotThreadSafe public interface StatsAccumulator
Accumulates values to calculate their statistics.
-
-
Field Summary
Fields Modifier and Type Field Description static double
COMPRESSION
static List<Integer>
PERCENTILES
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(double value)
Register the next value.Stats
getStats()
Get a snapshot of statistics from values accumulated so far.
-
-
-
Field Detail
-
COMPRESSION
static final double COMPRESSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
add
void add(double value)
Register the next value.- Throws:
IllegalArgumentException
- for infinite value or NaN
-
getStats
@Nullable Stats getStats()
Get a snapshot of statistics from values accumulated so far. Returns null if no statistics have been collected. Note that provided percentiles are only an estimation.
-
-