public interface QueryEngine
| Modifier and Type | Method and Description |
|---|---|
QueryContext |
createQueryContext(ExecutionContext context,
RepositoryCache repositoryCache,
Set<String> workspaceNames,
Map<String,NodeCache> overriddenNodeCachesByWorkspaceName,
Schemata schemata,
RepositoryIndexes indexDefns,
NodeTypes nodeTypes,
BufferManager bufferManager,
PlanHints hints,
Map<String,Object> variables)
Create a new context for query execution.
|
QueryResults |
execute(QueryContext context,
QueryCommand query)
Execute the supplied query by planning, optimizing, and then processing it.
|
void |
shutdown()
Signal that the engine is no longer needed and should clean up and/or close any resources.
|
QueryResults execute(QueryContext context, QueryCommand query) throws QueryCancelledException, RepositoryException
context - the context in which the query should be executedquery - the query that is to be executedIllegalArgumentException - if the context or query references are nullQueryCancelledException - if the query was cancelledRepositoryException - if there was a problem executing the queryQueryContext createQueryContext(ExecutionContext context, RepositoryCache repositoryCache, Set<String> workspaceNames, Map<String,NodeCache> overriddenNodeCachesByWorkspaceName, Schemata schemata, RepositoryIndexes indexDefns, NodeTypes nodeTypes, BufferManager bufferManager, PlanHints hints, Map<String,Object> variables)
context - the context in which the query is being executed; may not be nullrepositoryCache - the repository cache that should be used to load results; may be null if no results are to be loadedworkspaceNames - the name of each workspace to be queried, or an empty set if all the workspaces should be queried;
may not be nulloverriddenNodeCachesByWorkspaceName - the NodeCache instances that should be used to load results, which will be used
instead of the RepositoryCache's NodeCache for a given workspace name; may be null or emptyschemata - the schemataindexDefns - the definitions for the currently-defined indexes; never nullnodeTypes - the snapshot of node types; may not be nullbufferManager - the buffer manager; may not be nullhints - the hints, or null if there are no hintsvariables - the mapping of variables and values, or null if there are no such variablesIllegalArgumentException - if the context, workspace name, or schemata are nullvoid shutdown()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.