public static class WatermarkManager.TimerUpdate
extends java.lang.Object
setTimers and deletedTimers are collections of TimerInternals.TimerData
that have been added to the
TimerInternals
of an executed step. completedTimers are timers that were delivered as
the input to the executed step. pushedBackTimers are timers that were in completedTimers at the
input, but were pushed back due to processing constraints.
Modifier and Type | Class and Description |
---|---|
static class |
WatermarkManager.TimerUpdate.TimerUpdateBuilder
A
WatermarkManager.TimerUpdate builder that needs to be provided with set timers and deleted timers. |
Modifier and Type | Method and Description |
---|---|
static WatermarkManager.TimerUpdate.TimerUpdateBuilder |
builder(StructuralKey<?> key)
Creates a new
WatermarkManager.TimerUpdate builder with the provided completed timers that needs the
set and deleted timers to be added to it. |
static WatermarkManager.TimerUpdate |
empty()
Returns a TimerUpdate for a null key with no timers.
|
boolean |
equals(java.lang.Object other) |
java.lang.Iterable<? extends org.apache.beam.runners.core.TimerInternals.TimerData> |
getCompletedTimers() |
java.lang.Iterable<? extends org.apache.beam.runners.core.TimerInternals.TimerData> |
getDeletedTimers() |
java.lang.Iterable<? extends org.apache.beam.runners.core.TimerInternals.TimerData> |
getSetTimers() |
int |
hashCode() |
java.lang.String |
toString() |
WatermarkManager.TimerUpdate |
withCompletedTimers(java.lang.Iterable<org.apache.beam.runners.core.TimerInternals.TimerData> completedTimers)
Returns a
WatermarkManager.TimerUpdate that is like this one, but with the specified completed timers. |
WatermarkManager.TimerUpdate |
withPushedBackTimers(java.lang.Iterable<org.apache.beam.runners.core.TimerInternals.TimerData> pushedBackTimers)
Returns a
WatermarkManager.TimerUpdate that is like this one, but with the pushedBackTimersare removed
set by provided pushedBackTimers. |
public static WatermarkManager.TimerUpdate empty()
public static WatermarkManager.TimerUpdate.TimerUpdateBuilder builder(StructuralKey<?> key)
WatermarkManager.TimerUpdate
builder with the provided completed timers that needs the
set and deleted timers to be added to it.public java.lang.Iterable<? extends org.apache.beam.runners.core.TimerInternals.TimerData> getCompletedTimers()
public java.lang.Iterable<? extends org.apache.beam.runners.core.TimerInternals.TimerData> getSetTimers()
public java.lang.Iterable<? extends org.apache.beam.runners.core.TimerInternals.TimerData> getDeletedTimers()
public WatermarkManager.TimerUpdate withCompletedTimers(java.lang.Iterable<org.apache.beam.runners.core.TimerInternals.TimerData> completedTimers)
WatermarkManager.TimerUpdate
that is like this one, but with the specified completed timers.
Note that if any of the completed timers is in pushedBackTimers, then it is set instead. The
pushedBackTimers are cleared afterwards.public WatermarkManager.TimerUpdate withPushedBackTimers(java.lang.Iterable<org.apache.beam.runners.core.TimerInternals.TimerData> pushedBackTimers)
WatermarkManager.TimerUpdate
that is like this one, but with the pushedBackTimersare removed
set by provided pushedBackTimers.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object