Class PagedQueryIterator
- java.lang.Object
-
- org.apache.sling.resourceresolver.impl.mapping.PagedQueryIterator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPagedQueryIterator.QueryImplementationExceptionThrown when the underlying repository misbehaves with respect to sorting on multivalued properties.
-
Constructor Summary
Constructors Constructor Description PagedQueryIterator(String subject, String propertyName, org.apache.sling.api.resource.ResourceResolver resolver, String query, int pageSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull StringgetStatistics()@NotNull StringgetWarning()booleanhasNext()org.apache.sling.api.resource.Resourcenext()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
PagedQueryIterator
public PagedQueryIterator(String subject, String propertyName, org.apache.sling.api.resource.ResourceResolver resolver, String query, int pageSize)
- Parameters:
subject- name of the query, will be used only for loggingpropertyName- name of multivalued string property to query on (used for diagnostics)resolver- resource resolverquery- query string in SQL2 syntaxpageSize- page size (start a new query after page size is exceeded)
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public org.apache.sling.api.resource.Resource next() throws NoSuchElementException- Specified by:
nextin interfaceIterator<org.apache.sling.api.resource.Resource>- Throws:
NoSuchElementException
-
getStatistics
@NotNull public @NotNull String getStatistics()
-
getWarning
@NotNull public @NotNull String getWarning()
-
-