public static final class DataExpr.Count extends Object implements DataExpr.AggregateFunction
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).
|
boolean |
isCount()
Returns true if the aggregation type is count.
|
Query |
query()
Query for selecting the input measurements that should be aggregated.
|
Map<String,String> |
queryTags()
Return the exact matches from the query clause.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
resultTags
aggregator, eval
public Query query()
DataExpr
public boolean isAccumulating()
DataExpr
isAccumulating
in interface DataExpr
public boolean isCount()
DataExpr
public Map<String,String> queryTags()
DataExpr.AggregateFunction
queryTags
in interface DataExpr.AggregateFunction
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.