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

    Modifier and Type
    Method
    Description
    void
    build(org.apache.jena.sparql.expr.ExprList args)
    Called during query plan construction immediately after the construction of the extension instance.
    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>>> nodeValuesStream)
    Test a list of values - argument will not be null but may have the wrong number of arguments.
  • Method Details

    • build

      void build(org.apache.jena.sparql.expr.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(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>>> 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 solution
      args - A list of unevaluated expressions
      env - The execution context
      nodeValuesStream - where to emit new values