Class ProcessingTimeTriggers
java.lang.Object
org.apache.flink.table.runtime.operators.window.groupwindow.triggers.ProcessingTimeTriggers
A
Trigger that reacts to processing-time timers. The behavior can be one of the
following:
- fire when the processing time passes the end of the window (
afterEndOfWindow()), - fire when the processing time advances by a certain interval after reception of the first
element after the last firing for a given window (
every(Duration)).
In the first case, the trigger can also specify an early trigger. The early trigger will be responsible for specifying when the trigger should fire in the period between the beginning of the window and the time when the processing time passes the end of the window.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classATriggerthat fires once the current system time passes the end of the window to which a pane belongs.static final classA compositeTriggerthat consist of AfterEndOfWindow and a early trigger.static final classTrigger every a given interval, the first trigger time is interval after the first element in the pane. -
Method Summary
Modifier and TypeMethodDescriptionstatic <W extends Window>
ProcessingTimeTriggers.AfterEndOfWindow<W>Creates a trigger that fires when the processing time passes the end of the window.static <W extends Window>
ProcessingTimeTriggers.AfterFirstElementPeriodic<W>Creates a trigger that fires by a certain interval after reception of the first element.
-
Method Details
-
afterEndOfWindow
Creates a trigger that fires when the processing time passes the end of the window. -
every
public static <W extends Window> ProcessingTimeTriggers.AfterFirstElementPeriodic<W> every(Duration time) Creates a trigger that fires by a certain interval after reception of the first element.- Parameters:
time- the certain interval
-