Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "VIATRA/Query/DeveloperDocumentation/QueryEngineArchitecture"
m (Harmath.incquerylabs.com moved page VIATRA/Query/DeveloperDocumentation/IncQueryEngineArchitecture to VIATRA/Query/DeveloperDocumentation/QueryEngineArchitecture: Project merge) |
(Update to VIATRA Query 1.2) |
||
Line 7: | Line 7: | ||
* '''ViatraQueryEngine''': the central element of the API. | * '''ViatraQueryEngine''': the central element of the API. | ||
− | * ''' | + | * '''QueryScope''': the set of model elements the ViatraQueryEngine should work on. |
− | * ''' | + | ** The project itself implements only '''EMFScope''' right now. |
− | * '''IQueryBackend''': an executor of graph pattern matches; it instantiates | + | * '''IQueryRuntimeContext''': wrapper class for the query backends to access the model. The access can be both indexed and non-indexed. |
− | ** '''RetePatternMatcher''' is the fully incremental implementation of the | + | * '''IQueryBackend''': an executor of graph pattern matches; it instantiates '''IQueryResultProvider'''s. Query Backends needs to be registered to the ViatraQueryEngine itself. |
− | ** ''' | + | ** '''RetePatternMatcher''' is the fully incremental implementation of the '''IQueryResultProvider''' interface. |
− | * The ''' | + | ** '''LocalSearchResultProvider''' is a local search based implementation of the '''IQueryResultProvider''' interface. |
+ | * The '''ViatraQueryMatcher''' interface is the public matcher API: generated instances are type-safe. |
Revision as of 17:40, 29 March 2016
VIATRA Query Engine Internals
Overview
Most important concepts
- ViatraQueryEngine: the central element of the API.
- QueryScope: the set of model elements the ViatraQueryEngine should work on.
- The project itself implements only EMFScope right now.
- IQueryRuntimeContext: 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 IQueryResultProviders. Query Backends needs to be registered to the ViatraQueryEngine itself.
- RetePatternMatcher is the fully incremental implementation of the IQueryResultProvider interface.
- LocalSearchResultProvider is a local search based implementation of the IQueryResultProvider interface.
- The ViatraQueryMatcher interface is the public matcher API: generated instances are type-safe.