- All Known Implementing Classes:
QueryEngineFactoryWrapper
public interface QueryEngineFactory
A
QueryEngineFactory
builds query Plan
s via
create(Query, DatasetGraph, Binding, Context)
or
create(Op, DatasetGraph, Binding, Context)
. A Plan
has a
query iterator for the results of executing the Op
, a SPARQL algebra
expression with local extensions.
* A QueryEngineFactory
is registered with the
QueryEngineRegistry
.
* When determining which factory to use, the querye execution process calls
accept(Query, DatasetGraph, Context)
or
accept(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 with
QueryEngineRegistry.removeFactory(QueryEngineFactory)
.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.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
.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 Details
-
accept
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
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
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
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
-
-