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

Reply via email to