net.opentsdb.core
public interface Aggregator
DataPoints
together.
All aggregators must be stateless. All they can do is run through a
sequence of Longs
or Doubles
and return an
aggregated value.
Modifier and Type | Interface and Description |
---|---|
static interface |
Aggregator.Doubles
A sequence of
double s. |
static interface |
Aggregator.Longs
A sequence of
long s. |
Modifier and Type | Method and Description |
---|---|
Aggregators.Interpolation |
interpolationMethod()
Returns the interpolation method to use when working with data points
across time series.
|
double |
runDouble(Aggregator.Doubles values)
Aggregates a sequence of
double s. |
long |
runLong(Aggregator.Longs values)
Aggregates a sequence of
long s. |
long runLong(Aggregator.Longs values)
long
s.values
- The sequence to aggregate.double runDouble(Aggregator.Doubles values)
double
s.values
- The sequence to aggregate.Aggregators.Interpolation interpolationMethod()