Interface PostAggregator
- All Superinterfaces:
Cacheable
- All Known Implementing Classes:
ArithmeticPostAggregator,ConstantPostAggregator,DoubleGreatestPostAggregator,DoubleLeastPostAggregator,ExpressionPostAggregator,FieldAccessPostAggregator,FinalizingFieldAccessPostAggregator,HyperUniqueFinalizingPostAggregator,JavaScriptPostAggregator,LongGreatestPostAggregator,LongLeastPostAggregator
Functionally similar to an Aggregator. See the Aggregator interface for more comments.
-
Method Summary
Modifier and TypeMethodDescriptiondecorate(Map<String, AggregatorFactory> aggregators) Allows returning an enriched post aggregator, built from contextual information available from the given map ofAggregatorFactorykeyed by their names.getName()default ValueTypegetType()Deprecated.default ColumnTypegetType(ColumnInspector signature) Return the output type of a row processed with this post aggregator.Methods inherited from interface org.apache.druid.java.util.common.Cacheable
getCacheKey
-
Method Details
-
getDependentFields
-
getComparator
Comparator getComparator() -
compute
-
getName
-
getType
Return the output type of a row processed with this post aggregator. Refer to theColumnTypejavadocs for details on the implications of choosing a type.- Parameters:
signature-
-
getType
Deprecated.This method is deprecated and will be removed soon. UsegetType(ColumnInspector)instead. Do not call this method, it will likely produce incorrect results, it exists for backwards compatibility. -
decorate
Allows returning an enriched post aggregator, built from contextual information available from the given map ofAggregatorFactorykeyed by their names. Callers must call this method before callingcompute(java.util.Map<java.lang.String, java.lang.Object>)orgetComparator(). This is typically done in the constructor of queries which support post aggregators, viaQueries.prepareAggregations(java.util.List<org.apache.druid.query.aggregation.AggregatorFactory>, java.util.List<org.apache.druid.query.aggregation.PostAggregator>).
-