Class IteratorStreamFunctionBase
- java.lang.Object
-
- fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase
-
- All Implemented Interfaces:
IteratorFunction
- Direct Known Subclasses:
ITER_Call_Select,ITER_CSV,ITER_HTTPGet,ITER_JSONSurfer,ITER_MQTTSubscribe,ITER_WebSocket,IteratorFunctionBase,IteratorStreamFunctionBase0,IteratorStreamFunctionBase1,IteratorStreamFunctionBase2,IteratorStreamFunctionBase3,IteratorStreamFunctionBase4,IteratorStreamFunctionBase5,SPARQLExtIteratorFunction
public abstract class IteratorStreamFunctionBase extends Object implements IteratorFunction
The base implementation of theIteratorFunctioninterface.
-
-
Constructor Summary
Constructors Constructor Description IteratorStreamFunctionBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbuild(ExprList args)Build a iterator function execution with the given arguments, and operate a check of the build.abstract voidcheckBuild(ExprList args)Partially checks if the iterator function can be executed with the given arguments.abstract voidexec(List<NodeValue> args, Consumer<List<List<NodeValue>>> collectionListNodeValue)IteratorFunction call to a list of evaluated argument values.voidexec(Binding binding, ExprList args, FunctionEnv env, Consumer<List<List<NodeValue>>> collectionListNodeValue)Test a list of values - argument will not be null but may have the wrong number of arguments.ContextgetContext()Return the Context object for this execution.
-
-
-
Field Detail
-
arguments
protected ExprList arguments
The list of argument expressions.
-
-
Method Detail
-
build
public final void build(ExprList args)
Build a iterator function execution with the given arguments, and operate a check of the build.- Specified by:
buildin interfaceIteratorFunction- Parameters:
args- -- Throws:
QueryBuildException- if the iterator function cannot be executed with the given arguments.
-
checkBuild
public abstract void checkBuild(ExprList args)
Partially checks if the iterator function can be executed with the given arguments.- Parameters:
args- -- Throws:
QueryBuildException- if the iterator function cannot be executed with the given arguments.
-
exec
public final void exec(Binding binding, ExprList args, FunctionEnv env, Consumer<List<List<NodeValue>>> collectionListNodeValue)
Description copied from interface:IteratorFunctionTest a list of values - argument will not be null but may have the wrong number of arguments. FunctionBase provides a more convenient way to implement a function. Can throw ExprEvalsException if something goes wrong.- Specified by:
execin interfaceIteratorFunction- Parameters:
binding- The current solutionargs- A list of unevaluated expressionsenv- The execution contextcollectionListNodeValue- where to emit new values
-
getContext
public final Context getContext()
Return the Context object for this execution.- Returns:
- -
-
-