Class MergingWindowAssigner<T,W extends Window>
java.lang.Object
org.apache.flink.streaming.api.windowing.assigners.WindowAssigner<T,W>
org.apache.flink.streaming.api.windowing.assigners.MergingWindowAssigner<T,W>
- Type Parameters:
T- The type of elements that this WindowAssigner can assign windows to.W- The type ofWindowthat this assigner assigns.
- All Implemented Interfaces:
Serializable
@PublicEvolving
public abstract class MergingWindowAssigner<T,W extends Window>
extends WindowAssigner<T,W>
A
WindowAssigner that can merge windows.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCallback to be used inmergeWindows(Collection, MergeCallback)for specifying which windows should be merged.Nested classes/interfaces inherited from class org.apache.flink.streaming.api.windowing.assigners.WindowAssigner
WindowAssigner.WindowAssignerContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidmergeWindows(Collection<W> windows, MergingWindowAssigner.MergeCallback<W> callback) Determines which windows (if any) should be merged.Methods inherited from class org.apache.flink.streaming.api.windowing.assigners.WindowAssigner
assignWindows, getDefaultTrigger, getWindowSerializer, isEventTime
-
Constructor Details
-
MergingWindowAssigner
public MergingWindowAssigner()
-
-
Method Details
-
mergeWindows
public abstract void mergeWindows(Collection<W> windows, MergingWindowAssigner.MergeCallback<W> callback) Determines which windows (if any) should be merged.- Parameters:
windows- The window candidates.callback- A callback that can be invoked to signal which windows should be merged.
-