public class RexOver extends RexCall
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(RexBiVisitor<R,P> visitor,
P arg)
Accepts a visitor with a payload, dispatching to the right overloaded
RexBiVisitor.visitInputRef(RexInputRef, Object) visitXxx} method. |
<R> R |
accept(RexVisitor<R> visitor)
Accepts a visitor, dispatching to the right overloaded
visitXxx method. |
RexCall |
clone(RelDataType type,
List<RexNode> operands)
Creates a new call to the same operator with different operands.
|
protected String |
computeDigest(boolean withType) |
static boolean |
containsOver(List<? extends RexNode> exprs,
@Nullable RexNode condition)
Returns whether an expression list contains an OVER clause.
|
static boolean |
containsOver(RexNode expr)
Returns whether an expression contains an OVER clause.
|
static boolean |
containsOver(RexProgram program)
Returns whether a program contains an OVER clause.
|
boolean |
equals(@Nullable Object o) |
SqlAggFunction |
getAggOperator()
Returns the aggregate operator for this expression.
|
RexWindow |
getWindow() |
int |
hashCode() |
boolean |
ignoreNulls() |
boolean |
isDistinct() |
int |
nodeCount()
Returns the number of nodes in this expression.
|
appendOperands, getKind, getOperands, getOperator, getType, isAlwaysFalse, isAlwaysTrue, toStringpublic SqlAggFunction getAggOperator()
public RexWindow getWindow()
public boolean isDistinct()
public boolean ignoreNulls()
protected String computeDigest(boolean withType)
computeDigest in class RexCallpublic <R> R accept(RexVisitor<R> visitor)
RexNodevisitXxx method.
Also see RexUtil.apply(RexVisitor, java.util.List, RexNode),
which applies a visitor to several expressions simultaneously.
public <R,P> R accept(RexBiVisitor<R,P> visitor, P arg)
RexNodeRexBiVisitor.visitInputRef(RexInputRef, Object) visitXxx} method.public int nodeCount()
RexNodeLeaf nodes, such as RexInputRef or RexLiteral, have
a count of 1. Calls have a count of 1 plus the sum of their operands.
Node count is a measure of expression complexity that is used by some planner rules to prevent deeply nested expressions.
public static boolean containsOver(RexNode expr)
public static boolean containsOver(RexProgram program)
public static boolean containsOver(List<? extends RexNode> exprs, @Nullable RexNode condition)
public RexCall clone(RelDataType type, List<RexNode> operands)
RexCallpublic 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.