public interface QueryEngineFactory
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)
.
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Op op,
DatasetGraph dataset,
Context context)
Detect appropriate requests for a particular query engine for a particular graph type.
|
boolean |
accept(Query query,
DatasetGraph dataset,
Context context)
Detect appropriate requests for a particular query engine for a particular graph type.
|
Plan |
create(Op op,
DatasetGraph dataset,
Binding inputBinding,
Context context)
Call to create a
Plan : the companion accept(org.apache.jena.query.Query, org.apache.jena.sparql.core.DatasetGraph, org.apache.jena.sparql.util.Context) wil have returned true . |
Plan |
create(Query query,
DatasetGraph dataset,
Binding inputBinding,
Context context)
Call to create a
Plan : the companion accept(org.apache.jena.query.Query, org.apache.jena.sparql.core.DatasetGraph, org.apache.jena.sparql.util.Context) wil have returned true . |
boolean accept(Query query, DatasetGraph dataset, Context context)
query
- a Query
to be executeddataset
- the DatasetGraph
over which the query is to be executedcontext
- the Context
in which the query is to be executedPlan create(Query query, DatasetGraph dataset, Binding inputBinding, Context context)
Plan
: the companion accept(org.apache.jena.query.Query, org.apache.jena.sparql.core.DatasetGraph, org.apache.jena.sparql.util.Context)
wil have returned true
.query
- dataset
- inputBinding
- context
- boolean accept(Op op, DatasetGraph dataset, Context context)
op
- an Op
to be executeddataset
- the DatasetGraph
over which the operation is to be executedcontext
- the Context
in which the operation is to be executedPlan create(Op op, DatasetGraph dataset, Binding inputBinding, Context context)
Plan
: the companion accept(org.apache.jena.query.Query, org.apache.jena.sparql.core.DatasetGraph, org.apache.jena.sparql.util.Context)
wil have returned true
.op
- dataset
- inputBinding
- context
- Licenced under the Apache License, Version 2.0