Class AfterProcessingTime
java.lang.Object
org.apache.beam.sdk.transforms.windowing.Trigger
org.apache.beam.sdk.transforms.windowing.Trigger.OnceTrigger
org.apache.beam.sdk.transforms.windowing.AfterProcessingTime
- All Implemented Interfaces:
Serializable
A
Trigger
trigger that fires at a specified point in processing time, relative to when
input first arrives.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.beam.sdk.transforms.windowing.Trigger
Trigger.OnceTrigger
-
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.windowing.Trigger
subTriggers
-
Method Summary
Modifier and TypeMethodDescriptionAligns the time to be the smallest multiple ofperiod
greater than the epoch boundary (akanew Instant(0)
).Aligns timestamps to the smallest multiple ofperiod
since theoffset
greater than the timestamp.boolean
protected Trigger
getContinuationTrigger
(List<Trigger> continuationTriggers) Subclasses should override this to return theTrigger.getContinuationTrigger()
of thisTrigger
.The transforms applied to the arrival time of an element to determine when this trigger allows output.For internal use only; no backwards-compatibility guarantees.int
hashCode()
boolean
isCompatible
(Trigger other) For internal use only; no backwards-compatibility guarantees.static AfterProcessingTime
Creates a trigger that fires when the current processing time passes the processing time at which this trigger saw the first element in a pane.plusDelayOf
(Duration delay) Adds some delay to the original target time.toString()
Methods inherited from class org.apache.beam.sdk.transforms.windowing.Trigger.OnceTrigger
getContinuationTrigger, mayFinish
Methods inherited from class org.apache.beam.sdk.transforms.windowing.Trigger
orFinally, subTriggers
-
Method Details
-
pastFirstElementInPane
Creates a trigger that fires when the current processing time passes the processing time at which this trigger saw the first element in a pane. -
getTimestampTransforms
The transforms applied to the arrival time of an element to determine when this trigger allows output. -
plusDelayOf
Adds some delay to the original target time.- Parameters:
delay
- the delay to add- Returns:
- An updated time trigger that will wait the additional time before firing.
-
alignedTo
Aligns timestamps to the smallest multiple ofperiod
since theoffset
greater than the timestamp. -
alignedTo
Aligns the time to be the smallest multiple ofperiod
greater than the epoch boundary (akanew Instant(0)
). -
isCompatible
Description copied from class:Trigger
For internal use only; no backwards-compatibility guarantees.Returns whether this performs the same triggering as the given
Trigger
.- Overrides:
isCompatible
in classTrigger
-
getWatermarkThatGuaranteesFiring
Description copied from class:Trigger
For internal use only; no backwards-compatibility guarantees.Returns a bound in event time by which this trigger would have fired at least once for a given window had there been input data.
For triggers that do not fire based on the watermark advancing, returns
BoundedWindow.TIMESTAMP_MAX_VALUE
.This estimate may be used, for example, to determine that there are no elements in a side-input window, which causes the default value to be used instead.
- Specified by:
getWatermarkThatGuaranteesFiring
in classTrigger
-
getContinuationTrigger
Description copied from class:Trigger
Subclasses should override this to return theTrigger.getContinuationTrigger()
of thisTrigger
. For convenience, this is provided the continuation trigger of each of the sub-triggers in the same order asTrigger.subTriggers
.- Specified by:
getContinuationTrigger
in classTrigger
- Parameters:
continuationTriggers
- contains the result ofTrigger.getContinuationTrigger()
on each of thesubTriggers
in the same order.
-
toString
-
equals
-
hashCode
public int hashCode()
-