jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-36) Implement a query parser
Date Wed, 21 Mar 2012 18:41:42 GMT

    [ https://issues.apache.org/jira/browse/OAK-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234833#comment-13234833
] 

Jukka Zitting commented on OAK-36:
----------------------------------

Instead of just a query parser for the set of supported languages, I'd like to see this as
an interface that defines an extension point for integrating any query languages. Something
like this:

{code}
interface QueryParser {

    /**
     * Parses the given query string, expressed in the specified language.
     *
     * @param query query string
     * @param language query language
     * @param namespaces applicable set of namespace prefix-&gt;URI mappings
     * @return parsed query, or <code>null</code> if the language is
     *         not supported by this parser
     * @throws QueryParserException if the query string could not be parsed
     */
    Query parse(String query, String language, Map<String, String> namespaces)
        throws QueryParserException;

}
{code}

The default XPath and SQL(2) query parsers can then be included in oak-core as standard implementations
of this interface, but a particular deployment could well contain custom query parsers that
add support for other query languages.
                
> Implement a query parser
> ------------------------
>
>                 Key: OAK-36
>                 URL: https://issues.apache.org/jira/browse/OAK-36
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: core
>            Reporter: Michael Dürig
>
> Implement a query parser and decide on a versatile AST representation which works with
all query languages and which is extensible to future query languages.

--
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

       

Mime
View raw message