java.lang.Object
org.apache.jena.sparql.engine.QueryEngineRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a QueryExecutionFactorystatic void
Add a QueryExecutionFactory to the default registrystatic QueryEngineRegistry
chooseRegistry
(Context context) If there is a registry in the context then return it otherwise yield the global instanceboolean
Check whether a query engine factory is already registeredstatic boolean
Check whether a query engine factory is already registered in the default registrycopy()
static QueryEngineRegistry
Create a copy of the registry from the context or return a new instanceAllow careful manipulation of the factories listfind
(Query query, DatasetGraph dataset) Locate a suitable factory for this query and datasetfind
(Query query, DatasetGraph dataset, Context context) Locate a suitable factory for this query and datasetfind
(Op op, DatasetGraph dataset, Context context) Locate a suitable factory for this algebra expression and datasetstatic QueryEngineFactory
findFactory
(Query query, DatasetGraph dataset, Context context) Locate a suitable factory for this query and dataset from the default registrystatic QueryEngineFactory
findFactory
(Op op, DatasetGraph dataset, Context context) Locate a suitable factory for this algebra expression and dataset from the default registrystatic QueryEngineRegistry
get()
static QueryEngineRegistry
Get the query engine registry from the context or null if there is none.void
Remove a QueryExecutionFactorystatic void
Remove a QueryExecutionFactorystatic void
set
(Context context, QueryEngineRegistry registry)
-
Constructor Details
-
QueryEngineRegistry
public QueryEngineRegistry()
-
-
Method Details
-
get
-
chooseRegistry
If there is a registry in the context then return it otherwise yield the global instance -
get
Get the query engine registry from the context or null if there is none. Returns null if the context is null. -
set
-
copy
-
copyFrom
Create a copy of the registry from the context or return a new instance -
findFactory
Locate a suitable factory for this query and dataset from the default registry- Parameters:
query
- Querydataset
- Dataset- Returns:
- A QueryExecutionFactory or null if none accept the request
-
findFactory
Locate a suitable factory for this algebra expression and dataset from the default registry- Parameters:
op
- Algebra expressiondataset
- DatasetGraphcontext
-- Returns:
- A QueryExecutionFactory or null if none accept the request
-
find
Locate a suitable factory for this query and dataset- Parameters:
query
- Querydataset
- Dataset- Returns:
- A QueryExecutionFactory or null if none accept the request
-
find
Locate a suitable factory for this query and dataset- Parameters:
query
- Querydataset
- Dataset- Returns:
- A QueryExecutionFactory or null if none accept the request
-
find
Locate a suitable factory for this algebra expression and dataset- Parameters:
op
- Algebra expressiondataset
- DatasetGraphcontext
-- Returns:
- A QueryExecutionFactory or null if none accept the request
-
addFactory
Add a QueryExecutionFactory to the default registry -
add
Add a QueryExecutionFactory -
removeFactory
Remove a QueryExecutionFactory -
remove
Remove a QueryExecutionFactory -
factories
Allow careful manipulation of the factories list -
containsFactory
Check whether a query engine factory is already registered in the default registry -
contains
Check whether a query engine factory is already registered
-