public abstract class RexWindowBound extends Object
RexWindowBounds| Constructor and Description |
|---|
RexWindowBound() |
| Modifier and Type | Method and Description |
|---|---|
<R,P> RexWindowBound |
accept(RexBiVisitor<R,P> visitor,
P arg)
Transforms the bound via
RexBiVisitor. |
<R> RexWindowBound |
accept(RexVisitor<R> visitor)
Transforms the bound via
RexVisitor. |
static RexWindowBound |
create(SqlNode node,
RexNode rexNode)
Deprecated.
|
@Nullable RexNode |
getOffset()
Returns offset from XX PRECEDING/FOLLOWING.
|
int |
getOrderKey()
Returns relative sort offset when known at compile time.
|
boolean |
isCurrentRow()
Returns if the bound is CURRENT ROW.
|
boolean |
isFollowing()
Returns if the bound is FOLLOWING.
|
boolean |
isPreceding()
Returns if the bound is PRECEDING.
|
boolean |
isUnbounded()
Returns if the bound is unbounded.
|
int |
nodeCount()
Returns the number of nodes in this bound.
|
@Deprecated public static RexWindowBound create(SqlNode node, RexNode rexNode)
@Pure
@EnsuresNonNullIf(expression="getOffset()",
result=false)
public boolean isUnbounded()
public boolean isPreceding()
public boolean isFollowing()
@Pure
@EnsuresNonNullIf(expression="getOffset()",
result=false)
public boolean isCurrentRow()
@Pure public @Nullable RexNode getOffset()
public int getOrderKey()
public <R> RexWindowBound accept(RexVisitor<R> visitor)
RexVisitor.R - return type of the visitorvisitor - visitor to acceptpublic <R,P> RexWindowBound accept(RexBiVisitor<R,P> visitor, P arg)
RexBiVisitor.R - return type of the visitorvisitor - visitor to acceptarg - Payloadpublic int nodeCount()
RexNode.nodeCount()Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.