Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 31100 invoked from network); 11 Sep 2007 06:13:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2007 06:13:53 -0000 Received: (qmail 23269 invoked by uid 500); 11 Sep 2007 06:13:45 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 23244 invoked by uid 500); 11 Sep 2007 06:13:45 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 23235 invoked by uid 99); 11 Sep 2007 06:13:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 23:13:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of julian.reschke@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 11 Sep 2007 06:13:42 +0000 Received: (qmail invoked by alias); 11 Sep 2007 06:13:20 -0000 Received: from p508F9E3A.dip0.t-ipconnect.de (EHLO [192.168.178.22]) [80.143.158.58] by mail.gmx.net (mp001) with SMTP; 11 Sep 2007 08:13:20 +0200 X-Authenticated: #1915285 X-Provags-ID: V01U2FsdGVkX199avlz34F9PsQBG3Rs8T5tc6oNX5Ns2YqauWA3PQ m334IOkdYqSyQ/ Message-ID: <46E631F7.3000505@gmx.de> Date: Tue, 11 Sep 2007 08:13:11 +0200 From: Julian Reschke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: dev@jackrabbit.apache.org Subject: Re: master plan for jsr 283 query implementation References: <46DFB804.4040809@gmx.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Christoph Kiehl wrote: > Marcel Reutegger wrote: > >> well, those are actually just my thoughts how I think we should >> implement the query enhancements specified in JSR 283. >> >> there are basically three major blocks that we need to implement: >> >> - JQOM, allows you to programmatically create a query >> - JCR-SQL2, the new SQL query syntax >> - additional query features (joins, etc.) >> >> In a first step I already introduced temporary interfaces for the JQOM >> and implementing classes. >> >> I'd like to keep the current design of the query sub system for a >> while until we are ready to switch to the new JQOM as the basis for >> syntax independent query representation. >> >> That is, in a first phase my suggestion is the following: >> >> XPath---+ >> +--->AQT----+ >> SQL-----+ +---->LuceneQuery >> | >> SQL2------->JQOM----+ >> >> >> AQT: abstract query tree >> >> And once the path SQL2->JQOM->LuceneQuery is stable: >> >> XPath---+ AQT (deprecated) >> | >> SQL-----+---->JQOM----->LuceneQuery >> | >> SQL2----+ >> >> >> Comments and suggestions are welcome. > > +1. Sounds reasonable. Do you want to use javacc for SQL2 parsing? Looks good to me as well (sorry, somehow missed the original post). Best regards, Julian