Class PanedWindowAssigner<W extends Window>
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.window.groupwindow.assigners.GroupWindowAssigner<W>
-
- org.apache.flink.table.runtime.operators.window.groupwindow.assigners.PanedWindowAssigner<W>
-
- Type Parameters:
W- The type ofWindowthat this assigner assigns.
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CumulativeWindowAssigner,SlidingWindowAssigner
public abstract class PanedWindowAssigner<W extends Window> extends GroupWindowAssigner<W>
AWindowAssignerthat window can be split into panes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PanedWindowAssigner()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract WassignPane(Object element, long timestamp)Given the timestamp and element, returns the pane into which it should be placed.abstract WgetLastWindow(W pane)Gets the last window which the pane belongs to.abstract Iterable<W>splitIntoPanes(W window)Splits the given window into panes collection.-
Methods inherited from class org.apache.flink.table.runtime.operators.window.groupwindow.assigners.GroupWindowAssigner
assignWindows, getWindowSerializer, isEventTime, open, toString
-
-
-
-
Method Detail
-
assignPane
public abstract W assignPane(Object element, long timestamp)
Given the timestamp and element, returns the pane into which it should be placed.- Parameters:
element- The element to which windows should be assigned.timestamp- The timestamp of the element whenGroupWindowAssigner.isEventTime()returns true, or the current system time whenGroupWindowAssigner.isEventTime()returns false.
-
splitIntoPanes
public abstract Iterable<W> splitIntoPanes(W window)
Splits the given window into panes collection.- Parameters:
window- the window to be split.- Returns:
- the panes iterable
-
-