Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 87907 invoked from network); 11 Sep 2007 04:14:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2007 04:14:40 -0000 Received: (qmail 27300 invoked by uid 500); 11 Sep 2007 04:14:32 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 27267 invoked by uid 500); 11 Sep 2007 04:14:32 -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 27258 invoked by uid 99); 11 Sep 2007 04:14:32 -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 21:14:32 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DATE_IN_PAST_06_12,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcaj-jackrabbit-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2007 04:14:29 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IUwsm-0001qh-Md for dev@jackrabbit.apache.org; Tue, 11 Sep 2007 05:57:48 +0200 Received: from gateway.subshell.com ([212.79.22.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Sep 2007 05:57:48 +0200 Received: from christoph by gateway.subshell.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Sep 2007 05:57:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@jackrabbit.apache.org From: Christoph Kiehl Subject: Re: master plan for jsr 283 query implementation Date: Mon, 10 Sep 2007 19:00:39 +0200 Lines: 44 Message-ID: References: <46DFB804.4040809@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: gateway.subshell.com User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: <46DFB804.4040809@gmx.net> Sender: news X-UiO-SPF-Received: Received-SPF: pass (mail-mx4.uio.no: domain of sea.gmane.org designates 80.91.229.5 as permitted sender) client-ip=80.91.229.5; envelope-from=news@sea.gmane.org; helo=sea.gmane.org; X-UiO-Spam-info: not spam, SpamAssassin (score=-3.0, required=12.0, autolearn=disabled, UIO_RECEIVED_FROM_NORWAY=-3) X-UiO-Scanned: B252A333D623F9036DE449EB03A7D558B9E6AE85 X-UiO-SPAM-Test: remote_host: 80.91.229.5 spam_score: -29 maxlevel 200 minaction 2 bait 0 mail/h: 36 total 472 max/h 36 blacklist 0 greylist 0 ratelimit 0 X-Virus-Checked: Checked by ClamAV on apache.org 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? Cheers, Christoph