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 ofperiodgreater than the epoch boundary (akanew Instant(0)).Aligns timestamps to the smallest multiple ofperiodsince theoffsetgreater than the timestamp.booleanprotected TriggergetContinuationTrigger(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.inthashCode()booleanisCompatible(Trigger other) For internal use only; no backwards-compatibility guarantees.static AfterProcessingTimeCreates 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, mayFinishMethods 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 ofperiodsince theoffsetgreater than the timestamp. -
alignedTo
Aligns the time to be the smallest multiple ofperiodgreater than the epoch boundary (akanew Instant(0)). -
isCompatible
Description copied from class:TriggerFor internal use only; no backwards-compatibility guarantees.Returns whether this performs the same triggering as the given
Trigger.- Overrides:
isCompatiblein classTrigger
-
getWatermarkThatGuaranteesFiring
Description copied from class:TriggerFor 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:
getWatermarkThatGuaranteesFiringin classTrigger
-
getContinuationTrigger
Description copied from class:TriggerSubclasses 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:
getContinuationTriggerin classTrigger- Parameters:
continuationTriggers- contains the result ofTrigger.getContinuationTrigger()on each of thesubTriggersin the same order.
-
toString
-
equals
-
hashCode
public int hashCode()
-