Package org.apache.calcite.rex
Class RexWindowBound.RexWindowBoundBounded
- java.lang.Object
-
- org.apache.calcite.rex.RexWindowBound
-
- org.apache.calcite.rex.RexWindowBound.RexWindowBoundBounded
-
- Enclosing class:
- RexWindowBound
private static class RexWindowBound.RexWindowBoundBounded extends RexWindowBound
Implements XX PRECEDING/FOLLOWING bound where XX is not UNBOUNDED.
-
-
Constructor Summary
Constructors Modifier Constructor Description (package private)
RexWindowBoundBounded(RexNode node)
private
RexWindowBoundBounded(SqlKind sqlKind, RexNode offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> RexWindowBound
accept(RexVisitor<R> visitor)
Transforms the bound viaRexVisitor
.boolean
equals(java.lang.Object o)
RexNode
getOffset()
Returns offset from XX PRECEDING/FOLLOWING.int
hashCode()
boolean
isFollowing()
Returns if the bound is FOLLOWING.boolean
isPreceding()
Returns if the bound is PRECEDING.java.lang.String
toString()
-
Methods inherited from class org.apache.calcite.rex.RexWindowBound
create, getOrderKey, isCurrentRow, isUnbounded
-
-
-
-
Method Detail
-
isPreceding
public boolean isPreceding()
Description copied from class:RexWindowBound
Returns if the bound is PRECEDING.- Overrides:
isPreceding
in classRexWindowBound
- Returns:
- if the bound is PRECEDING
-
isFollowing
public boolean isFollowing()
Description copied from class:RexWindowBound
Returns if the bound is FOLLOWING.- Overrides:
isFollowing
in classRexWindowBound
- Returns:
- if the bound is FOLLOWING
-
getOffset
public RexNode getOffset()
Description copied from class:RexWindowBound
Returns offset from XX PRECEDING/FOLLOWING.- Overrides:
getOffset
in classRexWindowBound
- Returns:
- offset from XX PRECEDING/FOLLOWING
-
accept
public <R> RexWindowBound accept(RexVisitor<R> visitor)
Description copied from class:RexWindowBound
Transforms the bound viaRexVisitor
.- Overrides:
accept
in classRexWindowBound
- Type Parameters:
R
- return type of the visitor- Parameters:
visitor
- visitor to accept- Returns:
- transformed bound
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-