Class RichCoGroupFunction<IN1,​IN2,​OUT>

    • Constructor Detail

      • RichCoGroupFunction

        public RichCoGroupFunction()
    • Method Detail

      • coGroup

        public abstract void coGroup​(Iterable<IN1> first,
                                     Iterable<IN2> second,
                                     Collector<OUT> out)
                              throws Exception
        Description copied from interface: CoGroupFunction
        This method must be implemented to provide a user implementation of a coGroup. It is called for each pair of element groups where the elements share the same key.
        Specified by:
        coGroup in interface CoGroupFunction<IN1,​IN2,​OUT>
        Parameters:
        first - The records from the first input.
        second - The records from the second.
        out - A collector to return elements.
        Throws:
        Exception - The function may throw Exceptions, which will cause the program to cancel, and may trigger the recovery logic.