public final class AggregationQueryPager.AggregationPartitionIterator extends AggregationQueryPager.GroupByPartitionIterator
PartitionIterator
for queries without Group By but with aggregates.
For maintaining backward compatibility we are forced to use the DataLimits.CQLLimits
instead of the
DataLimits.CQLGroupByLimits
. Due to that pages need to be fetched in a different way.
Constructor and Description |
---|
AggregationPartitionIterator(int pageSize,
ConsistencyLevel consistency,
ClientState clientState,
long queryStartNanoTime) |
AggregationPartitionIterator(int pageSize,
ReadExecutionController executionController,
long queryStartNanoTime) |
Modifier and Type | Method and Description |
---|---|
protected int |
computeSubPageSize(int pageSize,
int counted)
Computes the size of the next sub-page to retrieve.
|
protected boolean |
isDone(int pageSize,
int counted) |
protected QueryPager |
updatePagerLimit(QueryPager pager,
DataLimits limits,
java.nio.ByteBuffer lastPartitionKey,
Clustering<?> lastClustering)
Updates the pager with the new limits if needed.
|
close, hasNext, next
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
empty, wrap
public AggregationPartitionIterator(int pageSize, ConsistencyLevel consistency, ClientState clientState, long queryStartNanoTime)
public AggregationPartitionIterator(int pageSize, ReadExecutionController executionController, long queryStartNanoTime)
protected QueryPager updatePagerLimit(QueryPager pager, DataLimits limits, java.nio.ByteBuffer lastPartitionKey, Clustering<?> lastClustering)
AggregationQueryPager.GroupByPartitionIterator
updatePagerLimit
in class AggregationQueryPager.GroupByPartitionIterator
pager
- the pager previoulsy usedlimits
- the DataLimitslastPartitionKey
- the partition key of the last row returnedlastClustering
- the clustering of the last row returnedprotected boolean isDone(int pageSize, int counted)
isDone
in class AggregationQueryPager.GroupByPartitionIterator
protected int computeSubPageSize(int pageSize, int counted)
AggregationQueryPager.GroupByPartitionIterator
computeSubPageSize
in class AggregationQueryPager.GroupByPartitionIterator
pageSize
- the top-level page sizecounted
- the number of result returned so far by the previous sub-pagesCopyright © 2009-2022 The Apache Software Foundation