Interface WindowFunction<IN,​OUT,​KEY,​W extends Window>

    • Method Detail

      • apply

        void apply​(KEY key,
                   W window,
                   Iterable<IN> input,
                   Collector<OUT> out)
            throws Exception
        Evaluates the window and outputs none or several elements.
        Parameters:
        key - The key for which this window is evaluated.
        window - The window that is being evaluated.
        input - The elements in the window being evaluated.
        out - A collector for emitting elements.
        Throws:
        Exception - The function may throw exceptions to fail the program and trigger recovery.