jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Mueller <muel...@adobe.com>
Subject Re: The infamous getSize() == -1 (Was: [jira] [Created] (OAK-300) Query: QueryResult.getRows().getSize())
Date Wed, 19 Sep 2012 12:11:54 GMT

>How do I know it's for sure more than 20

Because the PrefetchIterator will try to prefetch 20 nodes.

>or whatever my page size happens to be?

If you have a higher page size then you need getSize(max).

>>Please note if you use offset and limit, getSize() will return the size
>> the result minus the offset (it will give you the number of rows you can
>> read from the result).
>Really? Is that according to the JCR spec?

Is it not?


View raw message