Class RexWindowBounds

java.lang.Object
org.apache.calcite.rex.RexWindowBounds

public final class RexWindowBounds extends Object
Helpers for RexWindowBound.
  • Field Details

    • UNBOUNDED_PRECEDING

      public static final RexWindowBound UNBOUNDED_PRECEDING
      UNBOUNDED PRECEDING.
    • UNBOUNDED_FOLLOWING

      public static final RexWindowBound UNBOUNDED_FOLLOWING
      UNBOUNDED FOLLOWING.
    • CURRENT_ROW

      public static final RexWindowBound CURRENT_ROW
      CURRENT ROW.
  • Method Details

    • create

      public static RexWindowBound create(SqlNode node, @Nullable RexNode rexNode)
      Creates a window bound from a SqlNode.
      Parameters:
      node - SqlNode of the bound
      rexNode - offset value when bound is not UNBOUNDED/CURRENT ROW
      Returns:
      window bound
    • following

      public static RexWindowBound following(RexNode offset)
    • preceding

      public static RexWindowBound preceding(RexNode offset)