jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: number of results in a query?
Date Mon, 22 Mar 2010 08:23:51 GMT
On Fri, Mar 19, 2010 at 20:50, Rodrigo Meza
<rodrigo.meza.forms@gmail.com> 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).


Alexander Klimetschek

View raw message