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 D75CBD712 for ; Fri, 6 Jul 2012 12:57:34 +0000 (UTC) Received: (qmail 84368 invoked by uid 500); 6 Jul 2012 12:57:34 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 84342 invoked by uid 500); 6 Jul 2012 12:57:34 -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 84331 invoked by uid 99); 6 Jul 2012 12:57:34 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2012 12:57:34 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 4D5F314035F for ; Fri, 6 Jul 2012 12:57:34 +0000 (UTC) Date: Fri, 6 Jul 2012 12:57:33 +0000 (UTC) From: "Jukka Zitting (JIRA)" To: oak-dev@jackrabbit.apache.org Message-ID: <679565299.13937.1341579454318.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (OAK-171) Add NodeState.compareAgainstBaseState() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jukka Zitting created OAK-171: --------------------------------- Summary: Add NodeState.compareAgainstBaseState() Key: OAK-171 URL: https://issues.apache.org/jira/browse/OAK-171 Project: Jackrabbit Oak Issue Type: Improvement Components: core Reporter: Jukka Zitting Priority: Minor The {{NodeStore.compare()}} method provides a common mechanism for comparing any two node states, and we originally decided to put the method on the {{NodeStore}} interface instead of on {{NodeState}} as for performance reasons we may want to dispatch the actual diffing operation based on the implementation of either one of the given {{NodeState}} instances. In practice it turns out that there's an important special case of this operation, comparing a {{NodeState}} against an earlier version of it (i.e. a base state), that is easy to dispatch based on just the modified state and is used so often that keeping the separate {{NodeStore}} reference around for the comparison operation tends to unnecessarily complicate relevant code. Thus I'd like to introduce a {{NodeState.compareAgainstBaseState()}} method signature in {{oak-core}} for this specific case. We'd still keep the {{NodeStore.compare()}} method around for more complicated diffing cases. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira