Class RichGroupReduceFunction<IN,​OUT>

    • Constructor Detail

      • RichGroupReduceFunction

        public RichGroupReduceFunction()
    • Method Detail

      • reduce

        public abstract void reduce​(Iterable<IN> values,
                                    Collector<OUT> out)
                             throws Exception
        Description copied from interface: GroupReduceFunction
        The reduce method. The function receives one call per group of elements.
        Specified by:
        reduce in interface GroupReduceFunction<IN,​OUT>
        Parameters:
        values - All records that belong to the given input key.
        out - The collector to hand results to.
        Throws:
        Exception - This method may throw exceptions. Throwing an exception will cause the operation to fail and may trigger recovery.