Class Window.RexWinAggCall

java.lang.Object
org.apache.calcite.rex.RexNode
org.apache.calcite.rex.RexCall
org.apache.calcite.rel.core.Window.RexWinAggCall
Enclosing class:
Window

public static class Window.RexWinAggCall extends RexCall
A call to a windowed aggregate function.

Belongs to a Window.Group.

It's a bastard son of a RexCall; similar enough that it gets visited by a RexVisitor, but it also has some extra data members.

  • Field Details

    • ordinal

      public final int ordinal
      Ordinal of this aggregate within its partition.
    • distinct

      public final boolean distinct
      Whether to eliminate duplicates before applying aggregate function.
    • ignoreNulls

      public final boolean ignoreNulls
      Whether to ignore nulls.
  • Constructor Details

    • RexWinAggCall

      @Deprecated public RexWinAggCall(SqlAggFunction aggFun, RelDataType type, List<RexNode> operands, int ordinal, boolean distinct)
      Deprecated.
    • RexWinAggCall

      public RexWinAggCall(SqlAggFunction aggFun, RelDataType type, List<RexNode> operands, int ordinal, boolean distinct, boolean ignoreNulls)
      Creates a RexWinAggCall.
      Parameters:
      aggFun - Aggregate function
      type - Result type
      operands - Operands to call
      ordinal - Ordinal within its partition
      distinct - Eliminate duplicates before applying aggregate function
  • Method Details