Class TableFunctionCollector<T>

    • Constructor Detail

      • TableFunctionCollector

        public TableFunctionCollector()
    • Method Detail

      • setInput

        public void setInput​(Object input)
        Sets the input row from left table, which will be used to cross join with the result of table function.
      • getInput

        public Object getInput()
        Gets the input value from left table, which will be used to cross join with the result of table function.
      • setCollector

        public void setCollector​(Collector<?> collector)
        Sets the current collector, which used to emit the final row.
      • reset

        public void reset()
        Resets the flag to indicate whether [[collect(T)]] has been called.
      • outputResult

        public void outputResult​(Object result)
        Output final result of this UDTF to downstreams.
      • close

        public void close()
        Description copied from interface: RichFunction
        Tear-down method for the user code. It is called after the last call to the main working methods (e.g. map or join). For functions that are part of an iteration, this method will be invoked after each iteration superstep.

        This method can be used for clean up work.

        Specified by:
        close in interface Collector<T>
        Specified by:
        close in interface RichFunction
        Overrides:
        close in class AbstractRichFunction