Class AggregateNode.NumericComparison<T>

java.lang.Object
org.apache.calcite.interpreter.AggregateNode.NumericComparison<T>
Type Parameters:
T - The numeric type
Direct Known Subclasses:
AggregateNode.MaxBigDecimal, AggregateNode.MaxDouble, AggregateNode.MaxFloat, AggregateNode.MaxInt, AggregateNode.MaxLong, AggregateNode.MinBigDecimal, AggregateNode.MinDouble, AggregateNode.MinFloat, AggregateNode.MinInt, AggregateNode.MinLong
Enclosing class:
AggregateNode

public static class AggregateNode.NumericComparison<T> extends Object
Common implementation of comparison aggregate methods over numeric values as a user-defined aggregate.
  • Constructor Details

    • NumericComparison

      public NumericComparison(T initialValue, BiFunction<T,T,T> comparisonFunction)
  • Method Details

    • init

      public T init()
    • add

      public T add(T accumulator, T value)
    • merge

      public T merge(T accumulator0, T accumulator1)
    • result

      public T result(T accumulator)