Class MergingWindowProcessFunction.DefaultAccMergingConsumer<W extends Window>
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.window.groupwindow.internal.MergingWindowProcessFunction.DefaultAccMergingConsumer<W>
-
- All Implemented Interfaces:
BiConsumerWithException<W,Collection<W>,Throwable>
- Enclosing class:
- MergingWindowProcessFunction<K,W extends Window>
public static class MergingWindowProcessFunction.DefaultAccMergingConsumer<W extends Window> extends Object implements BiConsumerWithException<W,Collection<W>,Throwable>
A default merging consumer that merges the accumulators in state windows that waiting to be merged into the target state window.The first parameter is the target state window, the second parameter is the windows that need to be merged.
-
-
Constructor Summary
Constructors Constructor Description DefaultAccMergingConsumer(InternalWindowProcessFunction.Context<?,W> ctx, NamespaceAggsHandleFunctionBase<W> windowAggregator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(W stateWindowResult, Collection<W> stateWindowsToBeMerged)
Performs this operation on the given arguments.
-
-
-
Constructor Detail
-
DefaultAccMergingConsumer
public DefaultAccMergingConsumer(InternalWindowProcessFunction.Context<?,W> ctx, NamespaceAggsHandleFunctionBase<W> windowAggregator)
-
-
Method Detail
-
accept
public void accept(W stateWindowResult, Collection<W> stateWindowsToBeMerged) throws Throwable
Description copied from interface:BiConsumerWithException
Performs this operation on the given arguments.- Specified by:
accept
in interfaceBiConsumerWithException<W extends Window,Collection<W extends Window>,Throwable>
- Parameters:
stateWindowResult
- the first input argumentstateWindowsToBeMerged
- the second input argument- Throws:
Throwable
-
-