Package org.apache.jena.sparql.engine
Interface QueryEngineFactory
-
- All Known Implementing Classes:
QueryEngineFactoryWrapper
public interface QueryEngineFactory
AQueryEngineFactory
builds queryPlan
s viacreate(Query, DatasetGraph, Binding, Context)
orcreate(Op, DatasetGraph, Binding, Context)
. APlan
has a query iterator for the results of executing theOp
, a SPARQL algebra expression with local extensions.* A
QueryEngineFactory
is 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 boolean
accept(Query query, DatasetGraph dataset, Context context)
Detect appropriate requests for a particular query engine for a particular graph type.boolean
accept(Op op, DatasetGraph dataset, Context context)
Detect appropriate requests for a particular query engine for a particular graph type.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
.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
.
-
-
-
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
- aQuery
to be executeddataset
- theDatasetGraph
over which the query is to be executedcontext
- theContext
in 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
- anOp
to be executeddataset
- theDatasetGraph
over which the operation is to be executedcontext
- theContext
in 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
-
-
-