Class AggregationQueryPager.GroupByPartitionIterator

    • Method Detail

      • hasNext

        public final boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<RowIterator>
      • isDone

        protected boolean isDone​(int pageSize,
                                 int counted)
      • updatePagerLimit

        protected QueryPager updatePagerLimit​(QueryPager pager,
                                              DataLimits limits,
                                              java.nio.ByteBuffer lastPartitionKey,
                                              Clustering<?> lastClustering)
        Updates the pager with the new limits if needed.
        Parameters:
        pager - the pager previoulsy used
        limits - the DataLimits
        lastPartitionKey - the partition key of the last row returned
        lastClustering - the clustering of the last row returned
        Returns:
        the pager to use to query the next page of data
      • computeSubPageSize

        protected int computeSubPageSize​(int pageSize,
                                         int counted)
        Computes the size of the next sub-page to retrieve.
        Parameters:
        pageSize - the top-level page size
        counted - the number of result returned so far by the previous sub-pages
        Returns:
        the size of the next sub-page to retrieve