public class SliceQueryPager extends java.lang.Object implements SinglePartitionPager
| 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() |
java.nio.ByteBuffer |
key() |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcolumnCounterfetchPage, isExhausted, maxRemainingprotected final CFMetaData cfm
protected final IDiskAtomFilter columnFilter
public java.nio.ByteBuffer key()
key in interface SinglePartitionPagerpublic PagingState state()
QueryPagerstate in interface QueryPagerprotected java.util.List<Row> queryNextPage(int pageSize, ConsistencyLevel consistencyLevel, boolean localQuery) throws RequestValidationException, RequestExecutionException
protected 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