@Override
    public Iterator<E> iterator() {
      Iterator<E> iter = new CumulativeCollectionIterator();

      if (limit > -1) {
        iter = new LimitIterator<>(iter, limit);
      }
      return iter;
    }
This is used as a wrapper over all the results of PR which are of non distinct type
geode-core/src/main/java/org/apache/geode/cache/query/internal/CumulativeNonDistinctResults.java