public class RangeNamesQueryPager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected CFMetaData |
cfm |
protected IDiskAtomFilter |
columnFilter |
| Modifier and Type | Method and Description |
|---|---|
ColumnCounter |
columnCounter() |
protected boolean |
containsPreviousLast(Row first)
Checks to see if the first row of a new page contains the last row from the previous page.
|
java.util.List<Row> |
fetchPage(int pageSize)
Fetches the next page.
|
protected Cell |
firstNonStaticCell(ColumnFamily cf)
Returns the first non-static cell in the ColumnFamily.
|
boolean |
isExhausted()
Whether or not this pager is exhausted, i.e.
|
protected boolean |
isReversed() |
protected static Cell |
lastCell(ColumnFamily cf) |
int |
maxRemaining()
The maximum number of cells/CQL3 row that we may still have to return.
|
protected java.util.List<Row> |
queryNextPage(int pageSize,
ConsistencyLevel consistencyLevel,
boolean localQuery) |
protected boolean |
recordLast(Row last)
Saves the paging state by recording the last seen partition key and cell name (where applicable).
|
protected void |
restoreState(int remaining,
boolean shouldFetchExtraRow) |
PagingState |
state()
Get the current state of the pager.
|
long |
timestamp() |
protected final CFMetaData cfm
protected final IDiskAtomFilter columnFilter
public PagingState state()
QueryPagerprotected java.util.List<Row> queryNextPage(int pageSize, ConsistencyLevel consistencyLevel, boolean localQuery) throws RequestExecutionException
RequestExecutionExceptionprotected boolean containsPreviousLast(Row first)
first - the first row of the new pagefirst contains the last from from the previous page and it is live, false otherwiseprotected boolean recordLast(Row last)
last - the last row in the current pageprotected boolean isReversed()
public java.util.List<Row> fetchPage(int pageSize) throws RequestValidationException, RequestExecutionException
QueryPagerfetchPage in interface QueryPagerpageSize - the maximum number of elements to return in the next page.RequestValidationExceptionRequestExecutionExceptionprotected void restoreState(int remaining,
boolean shouldFetchExtraRow)
public boolean isExhausted()
QueryPagerisExhausted in interface QueryPagerpublic int maxRemaining()
QueryPagermaxRemaining in interface QueryPagerpublic long timestamp()
public ColumnCounter columnCounter()
protected Cell firstNonStaticCell(ColumnFamily cf)
protected static Cell lastCell(ColumnFamily cf)
Copyright © 2018 The Apache Software Foundation