All Implemented Interfaces:
NamedWriteable, Writeable, PostAnalysisPlanVerificationAware, Resolvable, ToAggregator
Direct Known Subclasses:
MedianAbsoluteDeviation, Percentile, Sum

public abstract class NumericAggregate extends AggregateFunction implements ToAggregator
Aggregate function that receives a numeric, signed field, and returns a single double value.

Implement the supplier methods to return the correct AggregatorFunctionSupplier.

Some methods can be optionally overridden to support different variations:

  • supportsDates(): override to also support dates. Defaults to false.
  • resolveType(): override to support different parameters. Call super.resolveType() to add extra checks.
  • dataType(): override to return a different datatype. You can return field().dataType() to propagate the parameter type.