public abstract class Trigger.OnMergeContext extends Trigger.TriggerContext
Trigger.TriggerContext containing information accessible to the Trigger.onMerge(org.apache.beam.sdk.transforms.windowing.Trigger.OnMergeContext)
operational hook.| Constructor and Description |
|---|
OnMergeContext() |
| Modifier and Type | Method and Description |
|---|---|
abstract Trigger.OnMergeContext |
forTrigger(org.apache.beam.sdk.util.ExecutableTrigger trigger)
Create an
OnMergeContext for executing the given trigger. |
abstract void |
setTimer(Instant timestamp,
org.apache.beam.sdk.util.TimeDomain domain)
Sets a timer to fire when the watermark or processing time is beyond the given timestamp.
|
abstract org.apache.beam.sdk.util.state.MergingStateAccessor<?,?> |
state()
Returns the interface for accessing persistent state.
|
abstract Trigger.MergingTriggerInfo |
trigger()
Returns the interface for accessing trigger info.
|
currentEventTime, currentProcessingTime, currentSynchronizedProcessingTime, deleteTimer, windowpublic abstract void setTimer(Instant timestamp, org.apache.beam.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(org.apache.beam.sdk.util.ExecutableTrigger trigger)
OnMergeContext for executing the given trigger.forTrigger in class Trigger.TriggerContextpublic abstract org.apache.beam.sdk.util.state.MergingStateAccessor<?,?> state()
Trigger.TriggerContextstate in class Trigger.TriggerContextpublic abstract Trigger.MergingTriggerInfo trigger()
Trigger.TriggerContexttrigger in class Trigger.TriggerContext