jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller" <thomas.tom.muel...@gmail.com>
Subject Re: Total size of a query result and setLimit()
Date Fri, 17 Aug 2007 16:03:21 GMT

> I'm not concerned about an implementation not being able to 'support'
> setLimit(). I rather think of applications using that new method and at the same
> time wish to find out the total number of matches, as written initially by
> Christoph.

I understand.

> keep the setLimit() as is. but introduce a getSize() (or getTotalMatches()?) on
> the QueryResult. This method always returns the total number of nodes/rows
> independent of setLimit().

That's a good idea! Implementations that can't support it efficiently
could then calculate the size only when required. What about


View raw message