joerghoh commented on code in PR #108:
URL:
https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/108#discussion_r1432839699
##########
src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java:
##########
@@ -1288,50 +1288,66 @@ private Iterator<Resource> queryAllVanityPaths(String
query) {
return it;
}
+ /**
+ * Utility class for running paged queries.
+ */
private class PagedQueryIterator implements Iterator<Resource> {
private ResourceResolver resolver;
+ private String subject;
+ private String propertyName;
private String query;
- private String lastPath = "";
+ private String lastValue = "";
private Iterator<Resource> it;
private int count = 0;
private int page = 0;
- private int pageSize = Integer.getInteger("sling.vanityPath.pageSize",
2000);
+ private int pageSize;
private Resource next = null;
+ private String[] defaultValue = new String[0];
- public PagedQueryIterator(ResourceResolver resolver, String query) {
+ /**
+ * @param subject name of the query
Review Comment:
```suggestion
* @param subject name of the query, will be used only for logging
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]