Interface PostAggregator
-
- All Superinterfaces:
Cacheable
- All Known Implementing Classes:
ArithmeticPostAggregator,ConstantPostAggregator,DoubleGreatestPostAggregator,DoubleLeastPostAggregator,ExpressionPostAggregator,FieldAccessPostAggregator,FinalizingFieldAccessPostAggregator,HyperUniqueFinalizingPostAggregator,JavaScriptPostAggregator,LongGreatestPostAggregator,LongLeastPostAggregator
public interface PostAggregator extends Cacheable
Functionally similar to an Aggregator. See the Aggregator interface for more comments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Objectcompute(Map<String,Object> combinedAggregators)PostAggregatordecorate(Map<String,AggregatorFactory> aggregators)Allows returning an enriched post aggregator, built from contextual information available from the given map ofAggregatorFactorykeyed by their names.ComparatorgetComparator()Set<String>getDependentFields()StringgetName()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 Detail
-
getComparator
Comparator getComparator()
-
getType
@Nullable default ColumnType getType(ColumnInspector signature)
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 default ValueType 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
PostAggregator decorate(Map<String,AggregatorFactory> aggregators)
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>).
-
-