Class NullableNumericAggregatorFactory<T extends BaseNullableColumnValueSelector>

java.lang.Object
org.apache.druid.query.aggregation.AggregatorFactory
org.apache.druid.query.aggregation.NullableNumericAggregatorFactory<T>
All Implemented Interfaces:
Cacheable
Direct Known Subclasses:
SimpleDoubleAggregatorFactory, SimpleFloatAggregatorFactory, SimpleLongAggregatorFactory

public abstract class NullableNumericAggregatorFactory<T extends BaseNullableColumnValueSelector> extends AggregatorFactory
Abstract superclass for null-aware numeric aggregators. Includes functionality to wrap Aggregator, BufferAggregator, VectorAggregator, and AggregateCombiner to support nullable aggregations. The result of this aggregator will be null if all the values to be aggregated are null values, or if no values are aggregated at all. If any of the values are non-null, the result will be the aggregated value of the non-null values. Aggregators that use BaseObjectColumnValueSelector.getObject() must override useGetObject(ColumnSelectorFactory). Otherwise, the logic in this class is not correct for non-numeric selectors.
See Also: