jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: master plan for jsr 283 query implementation
Date Tue, 11 Sep 2007 06:13:11 GMT
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

Mime
View raw message