java.lang.Object
org.apache.jena.sparql.engine.QueryEngineRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a QueryExecutionFactorystatic voidAdd a QueryExecutionFactory to the default registrystatic QueryEngineRegistrychooseRegistry(Context context) If there is a registry in the context then return it otherwise yield the global instancebooleanCheck whether a query engine factory is already registeredstatic booleanCheck whether a query engine factory is already registered in the default registrycopy()static QueryEngineRegistryCreate 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 QueryEngineFactoryfindFactory(Query query, DatasetGraph dataset, Context context) Locate a suitable factory for this query and dataset from the default registrystatic QueryEngineFactoryfindFactory(Op op, DatasetGraph dataset, Context context) Locate a suitable factory for this algebra expression and dataset from the default registrystatic QueryEngineRegistryget()static QueryEngineRegistryGet the query engine registry from the context or null if there is none.voidRemove a QueryExecutionFactorystatic voidRemove a QueryExecutionFactorystatic voidset(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
-