|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.opentsdb.core.Aggregators
public final class Aggregators
Utility class that provides common, generally useful aggregators.
| Field Summary | |
|---|---|
static Aggregator |
AVG
Aggregator that returns the average value of the data point. |
static Aggregator |
MAX
Aggregator that returns the maximum data point. |
static Aggregator |
MIN
Aggregator that returns the minimum data point. |
static Aggregator |
SUM
Aggregator that sums up all the data points. |
| Method Summary | |
|---|---|
static Aggregator |
get(String name)
Returns the aggregator corresponding to the given name. |
static Set<String> |
set()
Returns the set of the names that can be used with get. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Aggregator SUM
public static final Aggregator MIN
public static final Aggregator MAX
public static final Aggregator AVG
| Method Detail |
|---|
public static Set<String> set()
get.
public static Aggregator get(String name)
name - The name of the aggregator to get.
NoSuchElementException - if the given name doesn't exist.set()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||