Package org.apache.druid.query.operator
Class OffsetLimit
java.lang.Object
org.apache.druid.query.operator.OffsetLimit
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final longstatic final OffsetLimitprotected final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanlonggetFromIndex(long maxIndex) Returns the first row index to fetch.longgetLimit()longlonglonggetToIndex(long maxIndex) Returns the last row index to fetch (non-inclusive).final inthashCode()booleanhasLimit()booleanbooleanstatic OffsetLimitlimit(int limit2) toString()
-
Field Details
-
offset
protected final long offset -
limit
protected final long limit -
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
-
getLimitOrMax
public long getLimitOrMax() -
equals
-
hashCode
public final int hashCode() -
toString
-
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
-