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) |
java.util.List<Row> |
fetchPage(int pageSize)
Fetches the next page.
|
protected static Column |
firstColumn(ColumnFamily cf) |
boolean |
isExhausted()
Whether or not this pager is exhausted, i.e.
|
protected boolean |
isReversed() |
protected static Column |
lastColumn(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) |
protected void |
restoreState(int remaining,
boolean lastWasRecorded) |
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)
protected boolean recordLast(Row last)
protected 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 lastWasRecorded)
public boolean isExhausted()
QueryPagerisExhausted in interface QueryPagerpublic int maxRemaining()
QueryPagermaxRemaining in interface QueryPagerpublic long timestamp()
public ColumnCounter columnCounter()
protected static Column firstColumn(ColumnFamily cf)
protected static Column lastColumn(ColumnFamily cf)
Copyright © 2015 The Apache Software Foundation