On Fri, Mar 19, 2010 at 20:50, Rodrigo Meza <[email protected]> wrote: > So, my question is: Is there any way to get the total number (or even > an estimation) of the results returned by a query?
Iterate over the result and count yourself. > As far as the javadoc specification of > javax.jcr.RangeIterator.getSize() says, is should exist a method > getNumberRemaining that gives an estimation of the total number of > results, but that method is not there. That sentence in the jcr 2.0 javadocs must be an error as that method does not exist (maybe it was planned but not added to the spec and the docs weren't correctly updated). Regards, Alex -- Alexander Klimetschek [email protected]
