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, nextpublic 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.GroupByPartitionIteratorupdatePagerLimit in class AggregationQueryPager.GroupByPartitionIteratorpager - 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.GroupByPartitionIteratorprotected int computeSubPageSize(int pageSize,
int counted)
AggregationQueryPager.GroupByPartitionIteratorcomputeSubPageSize in class AggregationQueryPager.GroupByPartitionIteratorpageSize - the top-level page sizecounted - the number of result returned so far by the previous sub-pagesCopyright © 2018 The Apache Software Foundation