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

    • Method Detail

      • process

        org.apache.flink.api.common.state.v2.StateFuture<Void> process​(KEY key,
                                                                       W window,
                                                                       InternalAsyncWindowFunction.InternalWindowContext context,
                                                                       IN input,
                                                                       org.apache.flink.util.Collector<OUT> out)
                                                                throws Exception
        Evaluates the window and outputs none or several elements.
        Parameters:
        context - The context in which the window is being evaluated.
        input - The elements in the window being evaluated.
        out - A collector for emitting elements.
        Returns:
        Throws:
        Exception - The function may throw exceptions to fail the program and trigger recovery.
      • clear

        org.apache.flink.api.common.state.v2.StateFuture<Void> clear​(W window,
                                                                     InternalAsyncWindowFunction.InternalWindowContext context)
                                                              throws Exception
        Deletes any state in the Context when the Window expires (the watermark passes its maxTimestamp + allowedLateness).
        Parameters:
        context - The context to which the window is being evaluated
        Throws:
        Exception - The function may throw exceptions to fail the program and trigger recovery.