spi-rmi query row iterator returns -1 for size
----------------------------------------------
Key: JCR-2118
URL: https://issues.apache.org/jira/browse/JCR-2118
Project: Jackrabbit Content Repository
Issue Type: Bug
Components: sandbox
Reporter: Frank van Lankvelt
When running queries over spi-rmi, the returned size for child node info and
query row iterators is always -1. This doesn't matter too much for the child
node infos, as the only place that it is used iterates over all nodes anyway.
However, for a query it would be nice to know how many results there are; the
approximation that lazy iterators make is fine.
The problem appears to be the use of the IteratorHelper in ServerQueryInfo.
Since it is not a range iterator, the wrapping ServerIterator cannot retrieve
the number of results. I suggest to replace the helper by a
RangeIteratorDecorator from jcr-commons.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.