| Package | Description |
|---|---|
| org.apache.hadoop.metrics2.lib |
A collection of library classes for implementing metrics sources
|
| org.apache.hadoop.metrics2.util |
General helpers for implementing source and sinks
|
| Modifier and Type | Method | Description |
|---|---|---|
SampleStat |
MutableStat.lastStat() |
Return a SampleStat object that supports
calls like StdDev and Mean.
|
| Modifier and Type | Method | Description |
|---|---|---|
SampleStat |
SampleStat.add(double x) |
Add a sample the running stat.
|
SampleStat |
SampleStat.add(long nSamples,
double xTotal) |
Add some sample and a partial sum to the running stat.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
SampleStat.copyTo(SampleStat other) |
Copy the values to other (saves object creation and gc.)
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.