Class IteratorStreamFunctionBase

    • Field Detail

      • arguments

        protected ExprList arguments
        The list of argument expressions.
    • Constructor Detail

      • IteratorStreamFunctionBase

        public IteratorStreamFunctionBase()
    • 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:
        build in interface IteratorFunction
        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: IteratorFunction
        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.
        Specified by:
        exec in interface IteratorFunction
        Parameters:
        binding - The current solution
        args - A list of unevaluated expressions
        env - The execution context
        collectionListNodeValue - where to emit new values
      • getContext

        public final Context getContext()
        Return the Context object for this execution.
        Returns:
        -
      • exec

        public abstract void exec​(List<NodeValue> args,
                                  Consumer<List<List<NodeValue>>> collectionListNodeValue)
        IteratorFunction call to a list of evaluated argument values.
        Parameters:
        args - -
        collectionListNodeValue - - where to emit collections of nodevalues