Class ProcessingTimeTriggers
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.window.groupwindow.triggers.ProcessingTimeTriggers
-
public class ProcessingTimeTriggers extends Object
ATrigger
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.
- fire when the processing time passes the end of the window (
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProcessingTimeTriggers.AfterEndOfWindow<W extends Window>
ATrigger
that fires once the current system time passes the end of the window to which a pane belongs.static class
ProcessingTimeTriggers.AfterEndOfWindowNoLate<W extends Window>
A compositeTrigger
that consist of AfterEndOfWindow and a early trigger.static class
ProcessingTimeTriggers.AfterFirstElementPeriodic<W extends Window>
Trigger every a given interval, the first trigger time is interval after the first element in the pane.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <W extends Window>
ProcessingTimeTriggers.AfterEndOfWindow<W>afterEndOfWindow()
Creates a trigger that fires when the processing time passes the end of the window.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.
-
-
-
Method Detail
-
afterEndOfWindow
public static <W extends Window> ProcessingTimeTriggers.AfterEndOfWindow<W> 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
-
-