net.opentsdb.core
Class Aggregators

java.lang.Object
  extended by net.opentsdb.core.Aggregators

public final class Aggregators
extends Object

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

SUM

public static final Aggregator SUM
Aggregator that sums up all the data points.


MIN

public static final Aggregator MIN
Aggregator that returns the minimum data point.


MAX

public static final Aggregator MAX
Aggregator that returns the maximum data point.


AVG

public static final Aggregator AVG
Aggregator that returns the average value of the data point.

Method Detail

set

public static Set<String> set()
Returns the set of the names that can be used with get.


get

public static Aggregator get(String name)
Returns the aggregator corresponding to the given name.

Parameters:
name - The name of the aggregator to get.
Throws:
NoSuchElementException - if the given name doesn't exist.
See Also:
set()