public PartitionIterator fetchPage(int pageSize, long queryStartNanoTime) { return pager.fetchPage(pageSize, consistency, clientState, queryStartNanoTime); } }
/** * Fetchs the next sub-page. * * @param subPageSize the sub-page size in number of groups * @return the next sub-page */ private final PartitionIterator fetchSubPage(int subPageSize) { return consistency != null ? subPager.fetchPage(subPageSize, consistency, clientState, queryStartNanoTime) : subPager.fetchPageInternal(subPageSize, executionController); }
/** * Fetchs the next sub-page. * * @param subPageSize the sub-page size in number of groups * @return the next sub-page */ private final PartitionIterator fetchSubPage(int subPageSize) { return consistency != null ? subPager.fetchPage(subPageSize, consistency, clientState, queryStartNanoTime) : subPager.fetchPageInternal(subPageSize, executionController); }
public PartitionIterator fetchPage(int pageSize, long queryStartNanoTime) { return pager.fetchPage(pageSize, consistency, clientState, queryStartNanoTime); } }
/** * Fetchs the next sub-page. * * @param subPageSize the sub-page size in number of groups * @return the next sub-page */ private final PartitionIterator fetchSubPage(int subPageSize) { return consistency != null ? subPager.fetchPage(subPageSize, consistency, clientState, queryStartNanoTime) : subPager.fetchPageInternal(subPageSize, executionController); }
public PartitionIterator fetchPage(int pageSize, long queryStartNanoTime) { return pager.fetchPage(pageSize, consistency, clientState, queryStartNanoTime); } }
protected Row computeNext() { try { while (currentPage == null || !currentPage.hasNext()) { if (pager.isExhausted()) return endOfData(); currentPage = select.process(pager.fetchPage(pageSize)).rows.iterator(); } return new Row(metadata, currentPage.next()); } catch (RequestValidationException | RequestExecutionException e) { throw new RuntimeException(e); } } };
private ResultMessage.Rows pageCountQuery(QueryPager pager, QueryOptions options, int pageSize, long now, int limit) throws RequestValidationException, RequestExecutionException { int count = 0; while (!pager.isExhausted()) { int maxLimit = pager.maxRemaining(); logger.debug("New maxLimit for paged count query is {}", maxLimit); ResultSet rset = process(pager.fetchPage(pageSize), options, maxLimit, now); count += rset.rows.size(); } // We sometimes query one more result than the user limit asks to handle exclusive bounds with compact tables (see updateLimitForQuery). // So do make sure the count is not greater than what the user asked for. ResultSet result = ResultSet.makeCountResult(keyspace(), columnFamily(), Math.min(count, limit), parameters.countAlias); return new ResultMessage.Rows(result); }
+ "ORDER BY or the IN and sort client side, or disable paging for this query"); List<Row> page = pager.fetchPage(pageSize); ResultMessage.Rows msg = processResults(page, options, limit, now);
+ "ORDER BY or the IN and sort client side, or disable paging for this query"); List<Row> page = pager.fetchPage(pageSize); ResultMessage.Rows msg = processResults(page, options, limit, now);