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 longlimitstatic OffsetLimitNONEprotected longoffset
-
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 booleanequals(Object o)longgetFromIndex(long maxIndex)Returns the first row index to fetch.longgetLimit()longgetLimitOrMax()longgetOffset()longgetToIndex(long maxIndex)Returns the last row index to fetch (non-inclusive).inthashCode()booleanhasLimit()booleanhasOffset()booleanisPresent()static OffsetLimitlimit(int limit2)StringtoString()
-
-
-
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
-
-