Class MergingWindowAssigner<T,​W extends Window>

  • Type Parameters:
    T - The type of elements that this WindowAssigner can assign windows to.
    W - The type of Window that 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:
    Serialized Form
    • Constructor Detail

      • MergingWindowAssigner

        public MergingWindowAssigner()
    • Method Detail

      • 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.