jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ard Schrijvers <a.schrijv...@onehippo.com>
Subject Re: How do I get the total size of nodes/rows from a QueryResult
Date Tue, 25 Oct 2011 15:38:01 GMT
On Tue, Oct 25, 2011 at 5:02 PM, Jukka Zitting <jukka.zitting@gmail.com> wrote:
> Hi,
>
> On Tue, Oct 25, 2011 at 4:25 PM,  <Sascha.Theves@bosch-si.com> wrote:
>> How do I get the total size of nodes or rows with Jackrabbit 2.2.9?
>
> Use the getSize() method of the returned node or row iterator.

Wasn't a problem that if you do not use an order by clause and you did
not iterate yet over the result set, that you get -1 ... I thought I
saw something like that before.

Regards Ard

>
> BR,
>
> Jukka Zitting
>



-- 
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 1 Broadway, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com

Mime
View raw message