public interface DataExpr
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DataExpr.AggregateFunction
Base type for simple aggregate functions.
|
static interface |
DataExpr.Aggregator
Helper for incrementally computing an aggregate of a set of tag values.
|
static class |
DataExpr.All
Includes all datapoints that match the query expression.
|
static class |
DataExpr.Count
Aggregates all datapoints that match the query to a single datapoint that is the
number of input values.
|
static class |
DataExpr.DropRollup
Rollup inputs by dropping the specified keys.
|
static class |
DataExpr.GroupBy
Compute a set of time series matching the query and grouped by the specified keys.
|
static class |
DataExpr.KeepRollup
Rollup inputs by only keeping the specified keys.
|
static class |
DataExpr.Max
Aggregates all datapoints that match the query to a single datapoint that is the
maximum of the input values.
|
static class |
DataExpr.Min
Aggregates all datapoints that match the query to a single datapoint that is the
minimum of the input values.
|
static class |
DataExpr.Sum
Aggregates all datapoints that match the query to a single datapoint that is the
sum of the input values.
|
| Modifier and Type | Method and Description |
|---|---|
default DataExpr.Aggregator |
aggregator()
Get an aggregator using the default set of tags for the final result.
|
DataExpr.Aggregator |
aggregator(java.util.Map<java.lang.String,java.lang.String> tags)
Get an aggregator that can be incrementally fed values.
|
default java.lang.Iterable<TagsValuePair> |
eval(java.lang.Iterable<TagsValuePair> input)
Evaluate the data expression over the input.
|
Query |
query()
Query for selecting the input measurements that should be aggregated.
|
Query query()
DataExpr.Aggregator aggregator(java.util.Map<java.lang.String,java.lang.String> tags)
eval(Iterable) if
you already have the completed list of values.tags - The set of tags for the final aggregate.default DataExpr.Aggregator aggregator()
default java.lang.Iterable<TagsValuePair> eval(java.lang.Iterable<TagsValuePair> input)
input - Set of data values. The data will get filtered based on the query, that does
not need to be done in advance.