java.lang.Object
org.apache.jena.sparql.service.ServiceExec
Entry into the service executor from SPARQL queries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryIterator
exec
(OpService opExecute, OpService original, Binding binding, ExecutionContext execCxt) Execute an OpService w.r.t. the execCxt's service executor registry - concretely its single chain which operates on a per-binding basis.static QueryIterator
exec
(OpService opService, QueryIterator input, ExecutionContext execCxt) Execute an OpService w.r.t. the execCxt's service executor registry.static QueryIterator
exec
(QueryIterator input, OpService opService, ExecutionContext execCxt) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
ServiceExec
public ServiceExec()
-
-
Method Details
-
exec
@Deprecated(forRemoval=true, since="5.4.0") public static QueryIterator exec(QueryIterator input, OpService opService, ExecutionContext execCxt) Deprecated, for removal: This API element is subject to removal in a future version.Useexec(OpService, QueryIterator, ExecutionContext)
whose parameter order matches that ofServiceExecutorBulk.createExecution(OpService, QueryIterator, ExecutionContext)
. -
exec
public static QueryIterator exec(OpService opService, QueryIterator input, ExecutionContext execCxt) Execute an OpService w.r.t. the execCxt's service executor registry. This is the route from OpExecutor. This method can also be used to pass a modified request through the whole service executor chain, as exemplified below:ServiceExecutorRegistry.get().addBulkLink((opService, input, execCxt, chain) -> { if (canHandle(opService)) { OpService modifiedOp = modifyOp(opService); // Forward the request to the beginning of the chain. return ServiceExec.exec(modifiedOp, input, execCxt); } else { // Forward the request to the remaining handlers in the chain. return chain.createExecution(opService, input, execCxt); } });
-
exec
public static QueryIterator exec(OpService opExecute, OpService original, Binding binding, ExecutionContext execCxt) Execute an OpService w.r.t. the execCxt's service executor registry - concretely its single chain which operates on a per-binding basis.
-