Class WrappingCollector<T>

    • Constructor Detail

      • WrappingCollector

        public WrappingCollector()
    • Method Detail

      • setCollector

        public void setCollector​(Collector<T> collector)
        Sets the current collector which is used to emit the final result.
      • outputResult

        public void outputResult​(T result)
        Outputs the final result to the wrapped collector.
      • 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