Class ContinuousProcessingTimeTrigger<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.ContinuousProcessingTimeTrigger<W>
- Type Parameters:
W- The type ofWindowson which this trigger can operate.
- All Implemented Interfaces:
Serializable
@PublicEvolving
public class ContinuousProcessingTimeTrigger<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 as measured by the clock
of the machine on which the job is running.- See Also:
-
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>
ContinuousProcessingTimeTrigger<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
-
getInterval
@VisibleForTesting public long getInterval() -
toString
-
of
public static <W extends org.apache.flink.streaming.api.windowing.windows.Window> ContinuousProcessingTimeTrigger<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.
-