Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-28

Query implementation

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.7
    • core, jcr

    Description

      A query engine needs to be implemented.

      A query parser in oak-core should be able to handle xpath, sql2 and optionally other query languages. The jcr component must generate a valid query in one of those languages from JQOM queries and pass that statement along with value bindings, limit, offset, and name space mappings to the oak-core.

      We need to:

      • Define the oak-core API for handling queries. How are do we handle name space mappings, limit and offset
      • Implement a query builder in the jcr component which takes care of translating JQOM queries to statements in string form
      • Implement a query parser in oak-core and decide on a versatile AST representation which works with all query languages and which is extensible to future query languages.
      • Implement the actual query execution engine which interprets the query AST

      Attachments

        1. OakToJcrQueryTreeConverter.java
          2 kB
          Thomas Mueller

        Issue Links

          Activity

            People

              thomasm Thomas Mueller
              thomasm Thomas Mueller
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: