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 D4EF1D6BB for ; Tue, 11 Dec 2012 15:03:02 +0000 (UTC) Received: (qmail 49658 invoked by uid 500); 11 Dec 2012 15:03:02 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 49463 invoked by uid 500); 11 Dec 2012 15:02:58 -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 49451 invoked by uid 99); 11 Dec 2012 15:02:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2012 15:02:58 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jukka.zitting@gmail.com designates 209.85.220.170 as permitted sender) Received: from [209.85.220.170] (HELO mail-vc0-f170.google.com) (209.85.220.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2012 15:02:50 +0000 Received: by mail-vc0-f170.google.com with SMTP id fl11so7988243vcb.1 for ; Tue, 11 Dec 2012 07:02:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=pNDk29s2Aoh/LmAISifYyxtHxVrkSbFWvfQHEdk89kA=; b=xgN3GmEpZkAoajCgzdR4+e8ztv00NNHA/lDtKfNh3CsgyV1sWdrNuzk7leteOC+1At 4A77xl/0kOTFlRSLdtnRhT+5phPBmE1Pf7NB3MWoz4bQC8MbqY6RHa4t5gSNH6m/O9lK FtQWTO7YgHwzb5z8BkYqHrlcrSaq0xXbR+UZdVKRyyp5tuqOI/pijQ1I1QIVXlssu/Ty u4KXjyOdO+owkw7RN6Ba+q4EFhfNVMkZ7VA8jXEnXpmbLOwU0GyQQMaDFV4+JF8CFShu gOhGrlSUuGBQSWwvFxS+b+uyqi9iOyt1PuUegrbLWiar+WTyfwt4P7UdOHt23oIZXFhx uoyg== Received: by 10.52.19.20 with SMTP id a20mr9999323vde.26.1355238149358; Tue, 11 Dec 2012 07:02:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.132.226 with HTTP; Tue, 11 Dec 2012 07:02:09 -0800 (PST) In-Reply-To: <50C745C1.5050206@apache.org> References: <20121211125753.1FD07238890B@eris.apache.org> <50C745C1.5050206@apache.org> From: Jukka Zitting Date: Tue, 11 Dec 2012 17:02:09 +0200 Message-ID: Subject: Re: svn commit: r1420138 - in /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak: query/ query/ast/ query/index/ spi/query/ To: Oak devs Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, On Tue, Dec 11, 2012 at 4:40 PM, Michael D=FCrig wrote= : > On 11.12.12 12:57, thomasm@apache.org wrote: >> - private Root root; >> + private Root rootTree; > > I'd leave these at root and only use rootTree for variables of type Tree, > which hold the root node of a tree (i.e. Tree rootTree =3D root.getTree("= /")). Could we refactor the code so that the QueryEngine instance doesn't need a direct Root reference? I.e. it would only have a reference to the root Tree of the current repository snapshot. AFAICT the query engine only needs the Root to be able to look up Tree instances, much less than the commit/refresh/etc. functionality offered by Root. BR, Jukka Zitting