Class MapEntries.PagedQueryIterator

java.lang.Object
org.apache.sling.resourceresolver.impl.mapping.MapEntries.PagedQueryIterator
All Implemented Interfaces:
Iterator<Resource>
Enclosing class:
MapEntries

protected class MapEntries.PagedQueryIterator extends Object implements Iterator<Resource>
Utility class for running paged queries.
  • Constructor Details

    • PagedQueryIterator

      public PagedQueryIterator(String subject, String propertyName, ResourceResolver resolver, String query, int pageSize)
      Parameters:
      subject - name of the query, will be used only for logging
      propertyName - name of multivalued string property to query on (used for diagnostics)
      resolver - resource resolver
      query - query string in SQL2 syntax
      pageSize - page size (start a new query after page size is exceeded)
  • Method Details