Interface StatsAccumulator
- All Known Implementing Classes:
StatsAccumulatorImpl
@Internal
@NotThreadSafe
public interface StatsAccumulator
Accumulates values to calculate their statistics.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
-
Method Summary
-
Field Details
-
PERCENTILES
-
COMPRESSION
static final double COMPRESSION- See Also:
-
-
Method Details
-
add
void add(double value) Register the next value.- Throws:
IllegalArgumentException
- for infinite value or NaN
-
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.
-