Class IteratorPlan

    • Nested Class Summary

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

      Fields 
      Modifier and Type Field Description
      protected ExprList exprList
      The list of expressions on which to evaluate the iterator.
    • Constructor Summary

      Constructors 
      Constructor Description
      IteratorPlan​(java.lang.String iri, ExprList e, java.util.List<Var> vars)
      The constructor.
    • Field Detail

      • exprList

        protected final ExprList exprList
        The list of expressions on which to evaluate the iterator.
    • Constructor Detail

      • IteratorPlan

        public IteratorPlan​(java.lang.String iri,
                            ExprList e,
                            java.util.List<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 Detail

      • getVars

        public java.util.List<Var> getVars()
      • exec

        public void exec​(java.util.List<Var> variables,
                         java.util.List<Binding> values,
                         Context context,
                         java.util.function.Consumer<java.util.List<Binding>> listBindingStream)
        Updates the values block. Method is blocking
        Parameters:
        variables - the current variables.
        values - the existing bindings.
        listBindingStream - where new bindings are emited.
        context - the execution context.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object