Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
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.