public static class Window.RexWinAggCall extends RexCall
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.
| Modifier and Type | Field and Description |
|---|---|
boolean |
distinct
Whether to eliminate duplicates before applying aggregate function.
|
boolean |
ignoreNulls
Whether to ignore nulls.
|
int |
ordinal
Ordinal of this aggregate within its partition.
|
| Constructor and Description |
|---|
RexWinAggCall(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.
|
| Modifier and Type | Method and Description |
|---|---|
RexCall |
clone(RelDataType type,
List<RexNode> operands)
Creates a new call to the same operator with different operands.
|
boolean |
equals(@Nullable Object o) |
int |
hashCode() |
accept, accept, appendOperands, computeDigest, getKind, getOperands, getOperator, getType, isAlwaysFalse, isAlwaysTrue, nodeCount, toStringpublic final int ordinal
public final boolean distinct
public final boolean ignoreNulls
@Deprecated public RexWinAggCall(SqlAggFunction aggFun, RelDataType type, List<RexNode> operands, int ordinal, boolean distinct)
public RexWinAggCall(SqlAggFunction aggFun, RelDataType type, List<RexNode> operands, int ordinal, boolean distinct, boolean ignoreNulls)
aggFun - Aggregate functiontype - Result typeoperands - Operands to callordinal - Ordinal within its partitiondistinct - Eliminate duplicates before applying aggregate functionpublic boolean equals(@Nullable Object o)
RexNodeEvery node must implement RexNode.equals(java.lang.Object) based on its content
public int hashCode()
RexNodeEvery node must implement RexNode.hashCode() consistent with
RexNode.equals(java.lang.Object)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.