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
A
WindowAssigner that window can be split into panes.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract 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.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
-
Constructor Details
-
PanedWindowAssigner
public PanedWindowAssigner()
-
-
Method Details
-
assignPane
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
Splits the given window into panes collection.- Parameters:
window- the window to be split.- Returns:
- the panes iterable
-
getLastWindow
Gets the last window which the pane belongs to.
-