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 Thu, 13 Sep 2012 07:58:56 GMT

The main question is still what the JCR API method getSize() should return.

A new method getSize(int max) is nice, and of course we can do that. But I
guess people will not use it in the near future because it's not part of
the JCR API.


On 9/12/12 8:06 PM, "Michael Marth" <mmarth@adobe.com> wrote:

>> As an alternative: we could use a separate method getSize(int max) which
>> * if called with max == -1 returns the exact size if quickly available,
>> * returns -1 otherwise, and
>> * returns the exact size but not more then max when called with max >=
>> This allows for estimates but leaves the caller in control.
>(and getSize() would still return -1 I guess?)

View raw message