public class ConstantPostAggregator extends Object implements PostAggregator
| Constructor and Description |
|---|
ConstantPostAggregator(String name,
Number constantValue) |
| Modifier and Type | Method and Description |
|---|---|
Object |
compute(Map<String,Object> combinedAggregators) |
ConstantPostAggregator |
decorate(Map<String,AggregatorFactory> aggregators)
Returns a richer post aggregator which are built from the given aggregators with their names and some accessible
environmental variables such as ones in the object scope.
|
boolean |
equals(Object o) |
byte[] |
getCacheKey() |
Comparator |
getComparator() |
Number |
getConstantValue() |
Set<String> |
getDependentFields() |
String |
getName() |
int |
hashCode() |
String |
toString() |
public Set<String> getDependentFields()
getDependentFields in interface PostAggregatorpublic Comparator getComparator()
getComparator in interface PostAggregatorpublic Object compute(Map<String,Object> combinedAggregators)
compute in interface PostAggregatorpublic String getName()
getName in interface PostAggregatorpublic ConstantPostAggregator decorate(Map<String,AggregatorFactory> aggregators)
PostAggregatordecorate in interface PostAggregatoraggregators - A map of aggregator factories with their names.public Number getConstantValue()
public byte[] getCacheKey()
getCacheKey in interface io.druid.java.util.common.CacheableCopyright © 2011–2017. All rights reserved.