Class ContinuousEventTimeTrigger<W extends org.apache.flink.streaming.api.windowing.windows.Window>
java.lang.Object
org.apache.flink.streaming.api.windowing.triggers.Trigger<Object,W>
org.apache.flink.streaming.api.windowing.triggers.ContinuousEventTimeTrigger<W>
- Type Parameters:
W- The type ofWindowson which this trigger can operate.
- All Implemented Interfaces:
Serializable
@PublicEvolving
public class ContinuousEventTimeTrigger<W extends org.apache.flink.streaming.api.windowing.windows.Window>
extends org.apache.flink.streaming.api.windowing.triggers.Trigger<Object,W>
A
Trigger that continuously fires based on a given time interval. This fires based on
Watermarks.- See Also:
-
Watermark- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.streaming.api.windowing.triggers.Trigger
org.apache.flink.streaming.api.windowing.triggers.Trigger.OnMergeContext, org.apache.flink.streaming.api.windowing.triggers.Trigger.TriggerContext -
Method Summary
Modifier and TypeMethodDescriptionbooleancanMerge()voidlongstatic <W extends org.apache.flink.streaming.api.windowing.windows.Window>
ContinuousEventTimeTrigger<W>Creates a trigger that continuously fires based on the given interval.org.apache.flink.streaming.api.windowing.triggers.TriggerResultonElement(Object element, long timestamp, W window, org.apache.flink.streaming.api.windowing.triggers.Trigger.TriggerContext ctx) org.apache.flink.streaming.api.windowing.triggers.TriggerResultonEventTime(long time, W window, org.apache.flink.streaming.api.windowing.triggers.Trigger.TriggerContext ctx) voidorg.apache.flink.streaming.api.windowing.triggers.TriggerResultonProcessingTime(long time, W window, org.apache.flink.streaming.api.windowing.triggers.Trigger.TriggerContext ctx) toString()
-
Method Details
-
onElement
-
onEventTime
-
onProcessingTime
-
clear
-
canMerge
public boolean canMerge() -
onMerge
-
toString
-
getInterval
@VisibleForTesting public long getInterval() -
of
public static <W extends org.apache.flink.streaming.api.windowing.windows.Window> ContinuousEventTimeTrigger<W> of(Duration interval) Creates a trigger that continuously fires based on the given interval.- Type Parameters:
W- The type ofWindowson which this trigger can operate.- Parameters:
interval- The time interval at which to fire.
-