public interface PostAggregator extends Cacheable
| Modifier and Type | Method and Description |
|---|---|
Object |
compute(Map<String,Object> combinedAggregators) |
PostAggregator |
decorate(Map<String,AggregatorFactory> aggregators)
Allows returning an enriched post aggregator, built from contextual information available from the given map of
AggregatorFactory keyed by their names. |
Comparator |
getComparator() |
Set<String> |
getDependentFields() |
String |
getName() |
ValueType |
getType()
Return the output type of a row processed with this post aggregator.
|
getCacheKeyComparator getComparator()
@Nullable ValueType getType()
ValueType javadocs
for details on the implications of choosing a type.PostAggregator decorate(Map<String,AggregatorFactory> aggregators)
AggregatorFactory keyed by their names. Callers must call this method before calling compute(java.util.Map<java.lang.String, java.lang.Object>) or
getComparator(). This is typically done in the constructor of queries which support post aggregators, via
Queries.prepareAggregations(java.util.List<org.apache.druid.query.aggregation.AggregatorFactory>, java.util.List<org.apache.druid.query.aggregation.PostAggregator>).Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.