jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: clarification on _modCount / mongomk.md
Date Mon, 09 Dec 2013 15:43:37 GMT
On 2013-12-09 16:29, Marcel Reutegger wrote:
> Hi,
>
>> I was trying to understand where support for _modCount actually happens.
>>
>> As far as I can tell, a DocumentStore implementation is free to use it
>> or not. The only non-MongoDocumentStore traces I could see is the string
>> constant in Document.java, right?
>
> this is correct. The JavaDoc for the field isn't really specific about this, but the
> return value of getModCount() is annotated with @CheckForNull, indicating
> that a Document may not have a mod count.

Right, forgot about that case.

As the use of MODCOUNT is somewhat internal to a DocumentStore impl, 
wouldn't it make sense to remove this signature and let the impls just 
to a regular Document.get(property)?

Best regards, Julian


Mime
View raw message