Package org.apache.calcite.rex
Class RexWindowBound.RexWindowBoundUnbounded
- java.lang.Object
-
- org.apache.calcite.rex.RexWindowBound
-
- org.apache.calcite.rex.RexWindowBound.RexWindowBoundUnbounded
-
- Enclosing class:
- RexWindowBound
private static class RexWindowBound.RexWindowBoundUnbounded extends RexWindowBound
Implements UNBOUNDED PRECEDING/FOLLOWING bound.
-
-
Constructor Summary
Constructors Constructor Description RexWindowBoundUnbounded(SqlNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getOrderKey()
Returns relative sort offset when known at compile time.int
hashCode()
boolean
isFollowing()
Returns if the bound is FOLLOWING.boolean
isPreceding()
Returns if the bound is PRECEDING.boolean
isUnbounded()
Returns if the bound is unbounded.java.lang.String
toString()
-
Methods inherited from class org.apache.calcite.rex.RexWindowBound
accept, create, getOffset, isCurrentRow
-
-
-
-
Field Detail
-
node
private final SqlNode node
-
-
Constructor Detail
-
RexWindowBoundUnbounded
RexWindowBoundUnbounded(SqlNode node)
-
-
Method Detail
-
isUnbounded
public boolean isUnbounded()
Description copied from class:RexWindowBound
Returns if the bound is unbounded.- Overrides:
isUnbounded
in classRexWindowBound
- Returns:
- if the bound is unbounded
-
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getOrderKey
public int getOrderKey()
Description copied from class:RexWindowBound
Returns relative sort offset when known at compile time. For instance, UNBOUNDED PRECEDING is less than CURRENT ROW.- Overrides:
getOrderKey
in classRexWindowBound
- Returns:
- relative order or -1 when order is not known
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-