public abstract class RexWindowBound extends Object
| 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–2015 The Apache Software Foundation. All rights reserved.