Class ServiceExec

java.lang.Object
org.apache.jena.sparql.service.ServiceExec

public class ServiceExec extends Object
Entry into the service executor from SPARQL queries.
  • Constructor Details

    • ServiceExec

      public ServiceExec()
  • Method Details

    • 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.