public abstract class Trigger.OnMergeContext extends Trigger.TriggerContext
Trigger.TriggerContext containing information accessible to the Trigger.onMerge(com.google.cloud.dataflow.sdk.transforms.windowing.Trigger<W>.OnMergeContext)
operational hook.| Constructor and Description |
|---|
OnMergeContext() |
| Modifier and Type | Method and Description |
|---|---|
abstract Trigger.OnMergeContext |
forTrigger(com.google.cloud.dataflow.sdk.util.ExecutableTrigger<W> trigger)
Create an
OnMergeContext for executing the given trigger. |
abstract void |
setTimer(Instant timestamp,
com.google.cloud.dataflow.sdk.util.TimeDomain domain)
Sets a timer to fire when the watermark or processing time is beyond the given timestamp.
|
abstract com.google.cloud.dataflow.sdk.util.state.MergingStateAccessor<?,W> |
state()
Returns the interface for accessing persistent state.
|
abstract Trigger.MergingTriggerInfo<W> |
trigger()
Returns the interface for accessing trigger info.
|
currentEventTime, currentProcessingTime, currentSynchronizedProcessingTime, deleteTimer, windowpublic abstract void setTimer(Instant timestamp, com.google.cloud.dataflow.sdk.util.TimeDomain domain)
As with state(), timers are implicitly scoped to the current window. All
timer firings for a window will be received, but the implementation should choose to ignore
those that are not applicable.
timestamp - the time at which the trigger should be re-evaluateddomain - the domain that the timestamp applies topublic abstract Trigger.OnMergeContext forTrigger(com.google.cloud.dataflow.sdk.util.ExecutableTrigger<W> trigger)
OnMergeContext for executing the given trigger.forTrigger in class Trigger.TriggerContextpublic abstract com.google.cloud.dataflow.sdk.util.state.MergingStateAccessor<?,W> state()
Trigger.TriggerContextstate in class Trigger.TriggerContextpublic abstract Trigger.MergingTriggerInfo<W> trigger()
Trigger.TriggerContexttrigger in class Trigger.TriggerContext