Class EventTimeTriggers.AfterEndOfWindowNoLate<W extends Window>
java.lang.Object
org.apache.flink.table.runtime.operators.window.groupwindow.triggers.Trigger<W>
org.apache.flink.table.runtime.operators.window.groupwindow.triggers.WindowTrigger<W>
org.apache.flink.table.runtime.operators.window.groupwindow.triggers.EventTimeTriggers.AfterEndOfWindowNoLate<W>
- All Implemented Interfaces:
Serializable
- Enclosing class:
- EventTimeTriggers
public static final class EventTimeTriggers.AfterEndOfWindowNoLate<W extends Window>
extends WindowTrigger<W>
A composite
Trigger that consist of AfterEndOfWindow and a late trigger.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.table.runtime.operators.window.groupwindow.triggers.Trigger
Trigger.OnMergeContext, Trigger.TriggerContext -
Field Summary
Fields inherited from class org.apache.flink.table.runtime.operators.window.groupwindow.triggers.WindowTrigger
ctx -
Method Summary
Modifier and TypeMethodDescriptionbooleancanMerge()Returns true if this trigger supports merging of trigger state and can therefore.voidClears any state that the trigger might still hold for the given window.booleanCalled for every element that gets added to a pane.booleanonEventTime(long time, W window) Called when an event-time timer that was set using the trigger context fires.voidonMerge(W window, Trigger.OnMergeContext mergeContext) Called when several windows have been merged into one window by theWindowAssigner.booleanonProcessingTime(long time, W window) Called when a processing-time timer that was set using the trigger context fires.voidInitialization method for the trigger.toString()withLateFirings(Trigger<W> lateFirings) Creates a newTriggerlike the this, except that it fires repeatedly whenever the givenTriggerfires after the watermark has passed the end of the window.Methods inherited from class org.apache.flink.table.runtime.operators.window.groupwindow.triggers.WindowTrigger
triggerTime
-
Method Details
-
withLateFirings
Creates a newTriggerlike the this, except that it fires repeatedly whenever the givenTriggerfires after the watermark has passed the end of the window. -
open
Description copied from class:TriggerInitialization method for the trigger. Creates states in this method. -
onElement
Description copied from class:TriggerCalled for every element that gets added to a pane. The result of this will determine whether the pane is evaluated to emit results. -
onProcessingTime
Description copied from class:TriggerCalled when a processing-time timer that was set using the trigger context fires.Note: This method is not called in case the window does not contain any elements. Thus, if you return
PURGEfrom a trigger method and you expect to do cleanup in a future invocation of a timer callback it might be wise to clean any state that you would clean in the timer callback.- Specified by:
onProcessingTimein classTrigger<W extends Window>- Parameters:
time- The timestamp at which the timer fired.window- The window for which the timer fired.- Returns:
- true for firing the window, false for no action
- Throws:
Exception
-
onEventTime
Description copied from class:TriggerCalled when an event-time timer that was set using the trigger context fires.Note: This method is not called in case the window does not contain any elements. Thus, if you return
PURGEfrom a trigger method and you expect to do cleanup in a future invocation of a timer callback it might be wise to clean any state that you would clean in the timer callback.- Specified by:
onEventTimein classTrigger<W extends Window>- Parameters:
time- The timestamp at which the timer fired.window- The window for which the timer fired.- Returns:
- true for firing the window, false for no action
- Throws:
Exception
-
canMerge
public boolean canMerge()Description copied from class:TriggerReturns true if this trigger supports merging of trigger state and can therefore.If this returns
trueyou must properly implementTrigger.onMerge(Window, OnMergeContext) -
onMerge
Description copied from class:TriggerCalled when several windows have been merged into one window by theWindowAssigner. -
clear
Description copied from class:TriggerClears any state that the trigger might still hold for the given window. This is called when a window is purged. Timers set usingTrigger.TriggerContext.registerEventTimeTimer(long)andTrigger.TriggerContext.registerProcessingTimeTimer(long)should be deleted here as well as state acquired usingTriggerContext#getPartitionedState(StateDescriptor). -
toString
-