You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Thomas Mueller <mu...@adobe.com> on 2012/11/14 12:15:07 UTC

Re: svn commit: r1409134 - in /jackrabbit/oak/trunk: oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/old/ oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/ oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/ oak-core/sr...

Hi,

Yes I came to the same conclusion. However I would prefer it Cursor stays
an interface, because it's an API. I could add an abstract class somewhere
else (in the Cursors class): an AbstractCursor class where remove() throws
an exception. Would that be OK as well?

Regards,
Thomas



On 11/14/12 11:43 AM, "Michael Dürig" <md...@apache.org> wrote:

>
>
>On 14.11.12 10:04, thomasm@apache.org wrote:
>> Author: thomasm
>> Date: Wed Nov 14 10:04:55 2012
>> New Revision: 1409134
>>
>> URL:http://svn.apache.org/viewvc?rev=1409134&view=rev
>> Log:
>> OAK-423 Query: org.apache.jackrabbit.oak.spi.query.Cursor.currentRow
>>called too late - refactor the Cursor interface to better match the
>>Iterator interface
>
>Couldn't Cursor extends Iterator<IndexRow> and make it an abstract class
>providing an implementation for remove() which just throws? After all a
>cursor really is an iterator now.
>
>Michael


Re: svn commit: r1409134 - in /jackrabbit/oak/trunk: oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/old/ oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/ oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/ oak-core/sr...

Posted by Michael Dürig <md...@apache.org>.

On 14.11.12 11:15, Thomas Mueller wrote:
> an AbstractCursor class where remove() throws
> an exception. Would that be OK as well?

Yes, I think that's even better.

Michael