jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank van Lankvelt <f.vanlankv...@onehippo.com>
Subject spi-rmi query row iterator returns -1 for size
Date Mon, 18 May 2009 10:53:33 GMT
Hi,

I'm not sure where bug reports for sandbox code should go, please direct me
to a more appropriate place if it exists.

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.

thanks, Frank

Mime
View raw message