Class ReduceApplyWindowFunction<K,​W extends Window,​T,​R>

    • Method Detail

      • apply

        public void apply​(K k,
                          W window,
                          Iterable<T> input,
                          Collector<R> out)
                   throws Exception
        Description copied from interface: WindowFunction
        Evaluates the window and outputs none or several elements.
        Specified by:
        apply in interface WindowFunction<K,​W extends Window,​T,​R>
        Parameters:
        k - 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.