Interface IteratorFunction
-
- All Known Implementing Classes:
ITER_Call_Select
,ITER_CBOR
,ITER_CSSPath
,ITER_CSV
,ITER_CSVHeaders
,ITER_DefaultGraphNamespaces
,ITER_for
,ITER_GeoJSON
,ITER_HTTPGet
,ITER_JSONListKeys
,ITER_JSONPath
,ITER_JSONSurfer
,ITER_MQTTSubscribe
,ITER_regex
,ITER_Split
,ITER_SQL
,ITER_WebSocket
,ITER_XPath
,IteratorFunctionBase
,IteratorFunctionBase0
,IteratorFunctionBase1
,IteratorFunctionBase2
,IteratorFunctionBase3
,IteratorFunctionBase4
,IteratorFunctionBase5
,IteratorStreamFunctionBase
,IteratorStreamFunctionBase0
,IteratorStreamFunctionBase1
,IteratorStreamFunctionBase2
,IteratorStreamFunctionBase3
,IteratorStreamFunctionBase4
,IteratorStreamFunctionBase5
,SPARQLExtIteratorFunction
public interface IteratorFunction
The interface of SPARQL-Generate iterator functions. SPARQL-Generate iterators are similar to SPARQL functions, except they return a list of list of RDF terms or SPARQL variables.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
build(ExprList args)
Called during query plan construction immediately after the construction of the extension instance.void
exec(Binding binding, ExprList args, FunctionEnv env, Consumer<List<List<NodeValue>>> nodeValuesStream)
Test a list of values - argument will not be null but may have the wrong number of arguments.
-
-
-
Method Detail
-
build
void build(ExprList args)
Called during query plan construction immediately after the construction of the extension instance. Can throw ExprBuildException if something is wrong (like wrong number of arguments).- Parameters:
args
- The parsed arguments
-
exec
void exec(Binding binding, ExprList args, FunctionEnv env, Consumer<List<List<NodeValue>>> nodeValuesStream)
Test 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.- Parameters:
binding
- The current solutionargs
- A list of unevaluated expressionsenv
- The execution contextnodeValuesStream
- where to emit new values
-
-