public abstract class Trigger.OnTimerContext extends Trigger.TriggerContext
Trigger.onTimer(com.google.cloud.dataflow.sdk.transforms.windowing.Trigger<W>.OnTimerContext).| Modifier and Type | Field and Description |
|---|---|
protected Trigger.TriggerId<W> |
destinationId |
| Constructor and Description |
|---|
OnTimerContext(Trigger.TriggerId<W> destinationId) |
| Modifier and Type | Method and Description |
|---|---|
abstract Trigger.OnTimerContext |
forTrigger(com.google.cloud.dataflow.sdk.util.ExecutableTrigger<W> trigger)
Create an
OnTimerContext for executing the given trigger. |
int |
getDestinationIndex() |
abstract boolean |
isDestination()
Returns true if the given trigger index corresponds to the current trigger.
|
abstract com.google.cloud.dataflow.sdk.util.ExecutableTrigger<W> |
nextStepTowardsDestination()
Returns the sub-trigger of the current trigger that is the next step towards the destination.
|
areAllSubtriggersFinished, currentProcessingTime, deleteTimer, firstUnfinishedSubTrigger, isFinished, lookup, lookup, remove, resetTree, setFinished, setTimer, store, subTrigger, subTriggers, unfinishedSubTriggers, windowprotected final Trigger.TriggerId<W extends BoundedWindow> destinationId
public OnTimerContext(Trigger.TriggerId<W> destinationId)
public int getDestinationIndex()
public abstract com.google.cloud.dataflow.sdk.util.ExecutableTrigger<W> nextStepTowardsDestination()
public abstract boolean isDestination()
public abstract Trigger.OnTimerContext forTrigger(com.google.cloud.dataflow.sdk.util.ExecutableTrigger<W> trigger)
OnTimerContext for executing the given trigger.forTrigger in class Trigger.TriggerContext