Class QueryExecUtils

java.lang.Object
org.aksw.jenax.arq.util.exec.query.QueryExecUtils

public class QueryExecUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Map<org.apache.jena.sparql.core.Var,org.apache.jena.sparql.core.Var>
    computeVarMapping(org.apache.jena.sparql.algebra.Op opRemote, org.apache.jena.sparql.algebra.Op opRestored)
    Computes the variable mapping between the original and restored form of an OpService.
    static org.apache.jena.sparql.algebra.optimize.RewriteFactory
    decideOptimizer(org.apache.jena.sparql.util.Context context)
    The method is private in Optimize.
    static org.apache.jena.sparql.engine.QueryIterator
    execute(org.apache.jena.sparql.algebra.Op op, org.apache.jena.sparql.core.DatasetGraph dataset, org.apache.jena.sparql.engine.binding.Binding binding, org.apache.jena.sparql.util.Context cxt)
    Special processing that unwraps dynamic datasets
    static org.apache.jena.sparql.engine.QueryIterator
    fromStream(Stream<org.apache.jena.sparql.engine.binding.Binding> stream, org.apache.jena.sparql.engine.ExecutionContext execCxt)
    Create a QueryIterator from a stream of bindings
    static <T> org.apache.jena.sparql.engine.QueryIterator
    fromStream(Stream<T> stream, org.apache.jena.sparql.core.Var outVar, org.apache.jena.sparql.engine.binding.Binding parentBinding, org.apache.jena.sparql.engine.ExecutionContext execCxt, Function<? super T,? extends org.apache.jena.graph.Node> toNode)
    Create a QueryIterator from a Stream of items.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • QueryExecUtils

      public QueryExecUtils()
  • Method Details

    • fromStream

      public static <T> org.apache.jena.sparql.engine.QueryIterator fromStream(Stream<T> stream, org.apache.jena.sparql.core.Var outVar, org.apache.jena.sparql.engine.binding.Binding parentBinding, org.apache.jena.sparql.engine.ExecutionContext execCxt, Function<? super T,? extends org.apache.jena.graph.Node> toNode)
      Create a QueryIterator from a Stream of items. Also wires up the close method.
    • fromStream

      public static org.apache.jena.sparql.engine.QueryIterator fromStream(Stream<org.apache.jena.sparql.engine.binding.Binding> stream, org.apache.jena.sparql.engine.ExecutionContext execCxt)
      Create a QueryIterator from a stream of bindings
    • execute

      public static org.apache.jena.sparql.engine.QueryIterator execute(org.apache.jena.sparql.algebra.Op op, org.apache.jena.sparql.core.DatasetGraph dataset, org.apache.jena.sparql.engine.binding.Binding binding, org.apache.jena.sparql.util.Context cxt)
      Special processing that unwraps dynamic datasets
    • computeVarMapping

      public static Map<org.apache.jena.sparql.core.Var,org.apache.jena.sparql.core.Var> computeVarMapping(org.apache.jena.sparql.algebra.Op opRemote, org.apache.jena.sparql.algebra.Op opRestored)
      Computes the variable mapping between the original and restored form of an OpService. The arguments are the subOf of OpService whereas opRestored is the result of Rename.reverseVarRename(Op, boolean) with argument true. This method is factored out from Service.exec(OpService, Context).
    • decideOptimizer

      public static org.apache.jena.sparql.algebra.optimize.RewriteFactory decideOptimizer(org.apache.jena.sparql.util.Context context)
      The method is private in Optimize. A request to make it public should be filed.