Class RichFlatMapFunction<IN,​OUT>

    • Constructor Detail

      • RichFlatMapFunction

        public RichFlatMapFunction()
    • Method Detail

      • flatMap

        public abstract void flatMap​(IN value,
                                     Collector<OUT> out)
                              throws Exception
        Description copied from interface: FlatMapFunction
        The core method of the FlatMapFunction. Takes an element from the input data set and transforms it into zero, one, or more elements.
        Specified by:
        flatMap in interface FlatMapFunction<IN,​OUT>
        Parameters:
        value - The input value.
        out - The collector for returning result values.
        Throws:
        Exception - This method may throw exceptions. Throwing an exception will cause the operation to fail and may trigger recovery.