@Override
  public boolean hasNext() {
    advancePage();
    return !currentPage.isEmpty();
  }
The page size the user wants.
geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/PageableLuceneQueryResultsImpl.java