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() |
default ValueType |
getType()
Deprecated.
|
default ColumnType |
getType(ColumnInspector signature)
Return the output type of a row processed with this post aggregator.
|
getCacheKeyComparator getComparator()
@Nullable default ColumnType getType(ColumnInspector signature)
ColumnType javadocs
for details on the implications of choosing a type.signature - @Deprecated default ValueType getType()
getType(ColumnInspector) instead. Do not call this
method, it will likely produce incorrect results, it exists for backwards compatibility.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–2022 The Apache Software Foundation. All rights reserved.