Class WindowReaderFunction<IN,​OUT,​KEY,​W extends Window>

    • Constructor Detail

      • WindowReaderFunction

        public WindowReaderFunction()
    • Method Detail

      • readWindow

        public abstract void readWindow​(KEY key,
                                        WindowReaderFunction.Context<W> context,
                                        Iterable<IN> elements,
                                        Collector<OUT> out)
                                 throws Exception
        Evaluates the window and outputs none or several elements.
        Parameters:
        key - The key for which this window is evaluated.
        context - The context in which the window is being evaluated.
        elements - 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.