DataExpr.AggregateFunction, DataExpr.Aggregator, DataExpr.All, DataExpr.Count, DataExpr.DropRollup, DataExpr.GroupBy, DataExpr.KeepRollup, DataExpr.Max, DataExpr.Min, DataExpr.SimpleAggregator, DataExpr.Sum
Modifier and Type | Method and Description |
---|---|
DataExpr.Aggregator |
aggregator(Map<String,String> tags,
boolean shouldCheckQuery)
Get an aggregator that can be incrementally fed values.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isAccumulating()
Returns true if the aggregation type is accumulating (sum or count).
|
Query |
query()
Query for selecting the input measurements that should be aggregated.
|
Map<String,String> |
resultTags(Map<String,String> tags)
Get the set of result tags for a particular datapoint.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
aggregator, eval, isCount
public Query query()
DataExpr
public boolean isAccumulating()
DataExpr
isAccumulating
in interface DataExpr
public Map<String,String> resultTags(Map<String,String> tags)
DataExpr
resultTags
in interface DataExpr
tags
- Full set of tags for a datapoint.public DataExpr.Aggregator aggregator(Map<String,String> tags, boolean shouldCheckQuery)
DataExpr
DataExpr.eval(Iterable)
if
you already have the completed list of values.aggregator
in interface DataExpr
tags
- The set of tags for the final aggregate.shouldCheckQuery
- If true, then values will be checked against the query before applying to the
aggregate. Otherwise, it is assumed that the user has already verified that the
datapoint matches before passing it in.