public abstract class RexWindowBound
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
RexWindowBound.RexWindowBoundBounded
Implements XX PRECEDING/FOLLOWING bound where XX is not UNBOUNDED.
|
private static class |
RexWindowBound.RexWindowBoundCurrentRow
Implements CURRENT ROW bound.
|
private static class |
RexWindowBound.RexWindowBoundUnbounded
Implements UNBOUNDED PRECEDING/FOLLOWING bound.
|
Constructor and Description |
---|
RexWindowBound() |
Modifier and Type | Method and Description |
---|---|
<R> RexWindowBound |
accept(RexVisitor<R> visitor)
Transforms the bound via
RexVisitor . |
static RexWindowBound |
create(SqlNode node,
RexNode rexNode)
Creates window bound.
|
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.
|
public static RexWindowBound create(SqlNode node, RexNode rexNode)
node
- SqlNode of the boundrexNode
- offset value when bound is not UNBOUNDED/CURRENT ROWpublic boolean isUnbounded()
public boolean isPreceding()
public boolean isFollowing()
public boolean isCurrentRow()
public RexNode getOffset()
public int getOrderKey()
public <R> RexWindowBound accept(RexVisitor<R> visitor)
RexVisitor
.R
- return type of the visitorvisitor
- visitor to acceptCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.