Class OffsetLimit

java.lang.Object
org.apache.druid.query.operator.OffsetLimit

public class OffsetLimit extends Object
  • Field Details

    • offset

      protected final long offset
    • limit

      protected final long limit
    • NONE

      public static final OffsetLimit NONE
  • Constructor Details

    • OffsetLimit

      public OffsetLimit(long offset, long limit)
  • Method Details

    • getOffset

      public long getOffset()
    • getLimit

      public long getLimit()
    • isPresent

      public boolean isPresent()
    • hasOffset

      public boolean hasOffset()
    • hasLimit

      public boolean hasLimit()
    • limit

      public static OffsetLimit limit(int limit2)
    • getLimitOrMax

      public long getLimitOrMax()
    • equals

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

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

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

      public long getFromIndex(long maxIndex)
      Returns the first row index to fetch.
      Parameters:
      maxIndex - maximal index accessible
    • getToIndex

      public long getToIndex(long maxIndex)
      Returns the last row index to fetch (non-inclusive).
      Parameters:
      maxIndex - maximal index accessible