Return-Path: X-Original-To: apmail-jackrabbit-oak-commits-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CEC939E75 for ; Fri, 15 Jun 2012 14:46:28 +0000 (UTC) Received: (qmail 40293 invoked by uid 500); 15 Jun 2012 14:46:28 -0000 Delivered-To: apmail-jackrabbit-oak-commits-archive@jackrabbit.apache.org Received: (qmail 40276 invoked by uid 500); 15 Jun 2012 14:46:28 -0000 Mailing-List: contact oak-commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-commits@jackrabbit.apache.org Delivered-To: mailing list oak-commits@jackrabbit.apache.org Received: (qmail 40268 invoked by uid 99); 15 Jun 2012 14:46:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2012 14:46:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2012 14:46:26 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 77E502388978; Fri, 15 Jun 2012 14:46:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1350642 - /jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/api/MicroKernel.java Date: Fri, 15 Jun 2012 14:46:05 -0000 To: oak-commits@jackrabbit.apache.org From: stefan@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120615144605.77E502388978@eris.apache.org> Author: stefan Date: Fri Jun 15 14:46:04 2012 New Revision: 1350642 URL: http://svn.apache.org/viewvc?rev=1350642&view=rev Log: OAK-142: MicroKernel API: returning the :hash property should be optional Modified: jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/api/MicroKernel.java Modified: jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/api/MicroKernel.java URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/api/MicroKernel.java?rev=1350642&r1=1350641&r2=1350642&view=diff ============================================================================== --- jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/api/MicroKernel.java (original) +++ jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/api/MicroKernel.java Fri Jun 15 14:46:04 2012 @@ -316,7 +316,7 @@ public interface MicroKernel { * If no filter is specified the implicit default filter is assumed: * {@code {nodes:["*"],properties:["*"]}} *

- * System-generated metadata properties: + * System-provided metadata properties: *

    *
  • {@code :childNodeCount} provides the actual number of direct child nodes; this property * is included by the implicit default filter. it can be excluded by specifying a filter such @@ -326,8 +326,14 @@ public interface MicroKernel { * are similar to fingerprints. they can be compared to quickly determine * if two subtrees are identical. if the {@code :hash} values are different * the respective subtrees are different with regard to structure and/or properties. + * if on the other hand the {@code :hash} values are identical the respective + * subtrees are identical with regard to structure and/or properties. * {@code :hash} is not included by the implicit default filter. - * it can be included by specifying a filter such as {@code {properties:["*", ":hash"]}}
  • + * it can be included by specifying a filter such as {@code {properties:["*", ":hash"]}} + *

    Returning the {@code :hash} property is optional. Some implementations + * might only return it on specific nodes or might not support it at all. + * If however a {@code :hash} property is returned it has to obey the contract + * described above.

    *
* * @param path path denoting root of node tree to be retrieved