Class OffsetLimit

java.lang.Object
org.apache.druid.sql.calcite.planner.OffsetLimit

public class OffsetLimit extends Object
Represents an offset and a limit.
  • Method Details

    • none

      public static OffsetLimit none()
    • fromSort

      public static OffsetLimit fromSort(org.apache.calcite.rel.core.Sort sort)
    • hasOffset

      public boolean hasOffset()
    • getOffset

      public long getOffset()
    • hasLimit

      public boolean hasLimit()
    • isNone

      public boolean isNone()
    • getLimit

      public long getLimit()
    • getOffsetAsRexNode

      @Nullable public org.apache.calcite.rex.RexNode getOffsetAsRexNode(org.apache.calcite.rex.RexBuilder builder)
    • getLimitAsRexNode

      @Nullable public org.apache.calcite.rex.RexNode getLimitAsRexNode(org.apache.calcite.rex.RexBuilder builder)
    • andThen

      public OffsetLimit andThen(OffsetLimit next)
      Return a new instance that represents applying this one first, then the one.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toOperatorOffsetLimit

      public OffsetLimit toOperatorOffsetLimit()