Package org.apache.druid.query.operator
Class OffsetLimit
- java.lang.Object
-
- org.apache.druid.query.operator.OffsetLimit
-
public class OffsetLimit extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected long
limit
static OffsetLimit
NONE
protected long
offset
-
Constructor Summary
Constructors Constructor Description OffsetLimit(long offset, long limit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
long
getFromIndex(long maxIndex)
Returns the first row index to fetch.long
getLimit()
long
getLimitOrMax()
long
getOffset()
long
getToIndex(long maxIndex)
Returns the last row index to fetch (non-inclusive).int
hashCode()
boolean
hasLimit()
boolean
hasOffset()
boolean
isPresent()
static OffsetLimit
limit(int limit2)
String
toString()
-
-
-
Field Detail
-
offset
protected final long offset
-
limit
protected final long limit
-
NONE
public static final OffsetLimit NONE
-
-
Method Detail
-
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()
-
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
-
-