Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9DDD710E60 for ; Mon, 9 Dec 2013 15:44:09 +0000 (UTC) Received: (qmail 83165 invoked by uid 500); 9 Dec 2013 15:44:08 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 83091 invoked by uid 500); 9 Dec 2013 15:44:07 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 83080 invoked by uid 99); 9 Dec 2013 15:44:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Dec 2013 15:44:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of julian.reschke@gmx.de designates 212.227.17.20 as permitted sender) Received: from [212.227.17.20] (HELO mout.gmx.net) (212.227.17.20) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Dec 2013 15:43:59 +0000 Received: from [192.168.1.38] ([217.91.35.233]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0Lu7a2-1VOrC11bp0-011VSC for ; Mon, 09 Dec 2013 16:43:39 +0100 Message-ID: <52A5E529.6020807@gmx.de> Date: Mon, 09 Dec 2013 16:43:37 +0100 From: Julian Reschke User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: oak-dev@jackrabbit.apache.org Subject: Re: clarification on _modCount / mongomk.md References: <52A5E064.3020704@gmx.de> <9C0FC4C8E9C29945B01766FC7F9D389818A81562B0@eurmbx01.eur.adobe.com> In-Reply-To: <9C0FC4C8E9C29945B01766FC7F9D389818A81562B0@eurmbx01.eur.adobe.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:1qyC8t5u9QPQ7ZaYOVjCNqz1C9dN9kTjIxp3Cft50Mnbpc+jUpG qvsi7x1mdt3/aAh1kyC3Jq9YT5uibW/i7aZVJAayuZcrYvEMz5rOHV4jDRzYUVbYczYTo0T MQ1mTpU77eADbL47a/9kbj0o+o+r4Y2aumxDdfwzFEXKRb3xqRE8h5cBD0+BwB/79qlPRQD htFDk/B7nK1MPfTCApuaQ== X-Virus-Checked: Checked by ClamAV on apache.org 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