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
The base implementation of the
IteratorFunction interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.jena.sparql.expr.ExprListThe list of argument expressions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidbuild(org.apache.jena.sparql.expr.ExprList args) Build a iterator function execution with the given arguments, and operate a check of the build.abstract voidcheckBuild(org.apache.jena.sparql.expr.ExprList args) Partially checks if the iterator function can be executed with the given arguments.abstract voidexec(List<org.apache.jena.sparql.expr.NodeValue> args, Consumer<List<List<org.apache.jena.sparql.expr.NodeValue>>> collectionListNodeValue) IteratorFunction call to a list of evaluated argument values.final voidexec(org.apache.jena.sparql.engine.binding.Binding binding, org.apache.jena.sparql.expr.ExprList args, org.apache.jena.sparql.function.FunctionEnv env, Consumer<List<List<org.apache.jena.sparql.expr.NodeValue>>> collectionListNodeValue) Test a list of values - argument will not be null but may have the wrong number of arguments.final org.apache.jena.sparql.util.ContextReturn the Context object for this execution.
-
Field Details
-
arguments
protected org.apache.jena.sparql.expr.ExprList argumentsThe list of argument expressions.
-
-
Constructor Details
-
IteratorStreamFunctionBase
public IteratorStreamFunctionBase()
-
-
Method Details
-
build
public final void build(org.apache.jena.sparql.expr.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:
org.apache.jena.query.QueryBuildException- if the iterator function cannot be executed with the given arguments.
-
checkBuild
public abstract void checkBuild(org.apache.jena.sparql.expr.ExprList args) Partially checks if the iterator function can be executed with the given arguments.- Parameters:
args- -- Throws:
org.apache.jena.query.QueryBuildException- if the iterator function cannot be executed with the given arguments.
-
exec
public final void exec(org.apache.jena.sparql.engine.binding.Binding binding, org.apache.jena.sparql.expr.ExprList args, org.apache.jena.sparql.function.FunctionEnv env, Consumer<List<List<org.apache.jena.sparql.expr.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 org.apache.jena.sparql.util.Context getContext()Return the Context object for this execution.- Returns:
- -
-
exec
public abstract void exec(List<org.apache.jena.sparql.expr.NodeValue> args, Consumer<List<List<org.apache.jena.sparql.expr.NodeValue>>> collectionListNodeValue) IteratorFunction call to a list of evaluated argument values.- Parameters:
args- -collectionListNodeValue- - where to emit collections of nodevalues
-