code: private SelectQuery incrementQueryPagination(SelectQuery query, SelectResultValue prevResult)
    {
      Map<String, Integer> pagingIdentifiers = prevResult.getPagingIdentifiers();
      Map<String, Integer> newPagingIdentifers = new HashMap<>();
  
      for (String segmentId : pagingIdentifiers.keySet()) {
        int newOffset = pagingIdentifiers.get(segmentId) + 1;
        newPagingIdentifers.put(segmentId, newOffset);
      }
  
      return query.withPagingSpec(new PagingSpec(newPagingIdentifers, pagingThreshold));
    }
docs: Don't run this benchmark with a query that doesn't use {@link Granularities#ALL},
  this pagination function probably doesn't work correctly in that case.