Class IteratorPlan

java.lang.Object
fr.mines_stetienne.ci.sparql_generate.engine.IteratorPlan
All Implemented Interfaces:
BindingsClausePlan

public class IteratorPlan extends Object implements BindingsClausePlan
Author:
Maxime Lefrançois
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.jena.sparql.expr.ExprList
    The list of expressions on which to evaluate the iterator.
  • Constructor Summary

    Constructors
    Constructor
    Description
    IteratorPlan(String iri, org.apache.jena.sparql.expr.ExprList e, List<org.apache.jena.sparql.core.Var> vars)
    The constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    exec(List<org.apache.jena.sparql.core.Var> variables, List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.Context context, Consumer<List<org.apache.jena.sparql.engine.binding.Binding>> listBindingStream)
    Updates the values block.
    getIterator(org.apache.jena.sparql.util.Context context)
     
    List<org.apache.jena.sparql.core.Var>
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • exprList

      protected final org.apache.jena.sparql.expr.ExprList exprList
      The list of expressions on which to evaluate the iterator.
  • Constructor Details

    • IteratorPlan

      public IteratorPlan(String iri, org.apache.jena.sparql.expr.ExprList e, List<org.apache.jena.sparql.core.Var> vars)
      The constructor.
      Parameters:
      iri - - The SPARQL-Generate iterator iri.
      e - - The list of expressions on which to evaluate the iterator function.
      vars - - The list of variables that will be bound to each result of the iterator function evaluation.
  • Method Details

    • getIterator

      public IteratorFunction getIterator(org.apache.jena.sparql.util.Context context)
    • getVars

      public List<org.apache.jena.sparql.core.Var> getVars()
    • exec

      public void exec(List<org.apache.jena.sparql.core.Var> variables, List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.Context context, Consumer<List<org.apache.jena.sparql.engine.binding.Binding>> listBindingStream)
      Updates the values block. Method is blocking
      Parameters:
      variables - the current variables.
      values - the existing bindings.
      context - the execution context.
      listBindingStream - where new bindings are emited.
    • toString

      public String toString()
      Overrides:
      toString in class Object