Package org.apache.jena.sparql.engine
Interface QueryEngineFactory
-
- All Known Implementing Classes:
QueryEngineFactoryWrapper
public interface QueryEngineFactoryAQueryEngineFactorybuilds queryPlans viacreate(Query, DatasetGraph, Binding, Context)orcreate(Op, DatasetGraph, Binding, Context). APlanhas a query iterator for the results of executing theOp, a SPARQL algebra expression with local extensions.* A
QueryEngineFactoryis registered with theQueryEngineRegistry.* When determining which factory to use, the querye execution process calls
accept(Query, DatasetGraph, Context)oraccept(Op, DatasetGraph, Context)to determine whether the particular type of query engine produced by this factory accepts the particular request.A QueryEngineFactory can be registered for use with
QueryEngineRegistry.addFactory(QueryEngineFactory)and unregistered withQueryEngineRegistry.removeFactory(QueryEngineFactory).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(Query query, DatasetGraph dataset, Context context)Detect appropriate requests for a particular query engine for a particular graph type.booleanaccept(Op op, DatasetGraph dataset, Context context)Detect appropriate requests for a particular query engine for a particular graph type.Plancreate(Query query, DatasetGraph dataset, Binding inputBinding, Context context)Call to create aPlan: the companionaccept(org.apache.jena.query.Query, org.apache.jena.sparql.core.DatasetGraph, org.apache.jena.sparql.util.Context)will have returnedtrue.Plancreate(Op op, DatasetGraph dataset, Binding inputBinding, Context context)Call to create aPlan: the companionaccept(org.apache.jena.query.Query, org.apache.jena.sparql.core.DatasetGraph, org.apache.jena.sparql.util.Context)will have returnedtrue.
-
-
-
Method Detail
-
accept
boolean accept(Query query, DatasetGraph dataset, Context context)
Detect appropriate requests for a particular query engine for a particular graph type.- Parameters:
query- aQueryto be executeddataset- theDatasetGraphover which the query is to be executedcontext- theContextin which the query is to be executed- Returns:
- whether the kind of query engine produced by this factory can handle this task
-
create
Plan create(Query query, DatasetGraph dataset, Binding inputBinding, Context context)
Call to create aPlan: the companionaccept(org.apache.jena.query.Query, org.apache.jena.sparql.core.DatasetGraph, org.apache.jena.sparql.util.Context)will have returnedtrue.- Parameters:
query-dataset-inputBinding-context-
-
accept
boolean accept(Op op, DatasetGraph dataset, Context context)
Detect appropriate requests for a particular query engine for a particular graph type.- Parameters:
op- anOpto be executeddataset- theDatasetGraphover which the operation is to be executedcontext- theContextin which the operation is to be executed- Returns:
- whether the kind of query engine produced by this factory can handle this task
-
create
Plan create(Op op, DatasetGraph dataset, Binding inputBinding, Context context)
Call to create aPlan: the companionaccept(org.apache.jena.query.Query, org.apache.jena.sparql.core.DatasetGraph, org.apache.jena.sparql.util.Context)will have returnedtrue.- Parameters:
op-dataset-inputBinding-context-
-
-