Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

VIATRA/Query/DeveloperDocumentation/QueryEngineArchitecture

< VIATRA‎ | Query
Revision as of 08:27, 25 March 2016 by Harmath.incquerylabs.com (Talk | contribs) (Split)

VIATRA Query Engine Internals

Overview

IncQueryEngine.png

Most important concepts

  • ViatraQueryEngine: the central element of the API.
  • ViatraQueryScope: the set of model elements the ViatraQueryEngine should work on. The project itself implements only EMFScope right now.
  • EMFQueryRuntimeContext: wrapper class for the query backends to access the model. The access can be both indexed and non-indexed.
  • IQueryBackend: an executor of graph pattern matches; it instantiates IResultProviders. Query Backends needs to be registered to the ViatraQueryEngine itself.
    • RetePatternMatcher is the fully incremental implementation of the IResultProvider interface.
    • LocalSearchMatcher is a local search based implementation of the IResultProvider interface.
  • The Matcher interface is the public matcher API: generated instances are type-safe.

Back to the top