Package org.apache.calcite.rel.core
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
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 Summary
FieldsModifier and TypeFieldDescriptionfinal booleanWhether to eliminate duplicates before applying aggregate function.final booleanWhether to ignore nulls.final intOrdinal of this aggregate within its partition. -
Constructor Summary
ConstructorsConstructorDescriptionRexWinAggCall(SqlAggFunction aggFun, RelDataType type, List<RexNode> operands, int ordinal, boolean distinct) Deprecated.RexWinAggCall(SqlAggFunction aggFun, RelDataType type, List<RexNode> operands, int ordinal, boolean distinct, boolean ignoreNulls) Creates a RexWinAggCall. -
Method Summary
Methods inherited from class org.apache.calcite.rex.RexCall
accept, accept, appendOperands, computeDigest, getKind, getOperands, getOperator, getParserPosition, getType, isAlwaysFalse, isAlwaysTrue, nodeCount, operandCount, toString
-
Field Details
-
ordinal
public final int ordinalOrdinal of this aggregate within its partition. -
distinct
public final boolean distinctWhether to eliminate duplicates before applying aggregate function. -
ignoreNulls
public final boolean ignoreNullsWhether 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 functiontype- Result typeoperands- Operands to callordinal- Ordinal within its partitiondistinct- Eliminate duplicates before applying aggregate function
-
-
Method Details
-
equals
Description copied from class:RexNodeEvery node must implement
RexNode.equals(java.lang.Object)based on its content -
hashCode
public int hashCode()Description copied from class:RexNodeEvery node must implement
RexNode.hashCode()consistent withRexNode.equals(java.lang.Object) -
clone
Description copied from class:RexCallCreates a new call to the same operator with different operands.
-