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 classIteratorPlan.Batches 
- 
Constructor Summary
Constructors Constructor Description IteratorPlan(String iri, ExprList e, List<Var> vars)The constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexec(List<Var> variables, List<Binding> values, Context context, Consumer<List<Binding>> listBindingStream)Updates the values block.IteratorFunctiongetIterator(Context context)List<Var>getVars()StringtoString() 
 - 
 
- 
- 
Field Detail
- 
exprList
protected final ExprList exprList
The list of expressions on which to evaluate the iterator. 
 - 
 
- 
Constructor Detail
- 
IteratorPlan
public IteratorPlan(String iri, ExprList e, 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
- 
getIterator
public IteratorFunction getIterator(Context context)
 
- 
exec
public void exec(List<Var> variables, List<Binding> values, Context context, Consumer<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.
 
 - 
 
 -