Class RexWindowBound.RexWindowBoundBounded

  • Enclosing class:
    RexWindowBound

    private static class RexWindowBound.RexWindowBoundBounded
    extends RexWindowBound
    Implements XX PRECEDING/FOLLOWING bound where XX is not UNBOUNDED.
    • Field Detail

      • sqlKind

        private final SqlKind sqlKind
      • offset

        private final RexNode offset
    • Constructor Detail

      • RexWindowBoundBounded

        RexWindowBoundBounded​(RexNode node)
      • RexWindowBoundBounded

        private RexWindowBoundBounded​(SqlKind sqlKind,
                                      RexNode offset)
    • Method Detail

      • isPreceding

        public boolean isPreceding()
        Description copied from class: RexWindowBound
        Returns if the bound is PRECEDING.
        Overrides:
        isPreceding in class RexWindowBound
        Returns:
        if the bound is PRECEDING
      • isFollowing

        public boolean isFollowing()
        Description copied from class: RexWindowBound
        Returns if the bound is FOLLOWING.
        Overrides:
        isFollowing in class RexWindowBound
        Returns:
        if the bound is FOLLOWING
      • getOffset

        public RexNode getOffset()
        Description copied from class: RexWindowBound
        Returns offset from XX PRECEDING/FOLLOWING.
        Overrides:
        getOffset in class RexWindowBound
        Returns:
        offset from XX PRECEDING/FOLLOWING
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object