Package org.apache.beam.sdk.transforms
Class DoFn.OnTimerContext
java.lang.Object
DoFn<InputT,OutputT>.org.apache.beam.sdk.transforms.DoFn.WindowedContext
org.apache.beam.sdk.transforms.DoFn.OnTimerContext
Information accessible when running a
DoFn.OnTimer
method.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Instant
Returns the firing timestamp of the current timer.abstract TimeDomain
Returns the time domain of the current timer.abstract Instant
Returns the output timestamp of the current timer.abstract BoundedWindow
window()
Returns the window in which the timer is firing.Methods inherited from class org.apache.beam.sdk.transforms.DoFn.WindowedContext
getPipelineOptions, output, output, outputWindowedValue, outputWindowedValue, outputWithTimestamp, outputWithTimestamp
-
Constructor Details
-
OnTimerContext
public OnTimerContext()
-
-
Method Details
-
timestamp
Returns the output timestamp of the current timer. -
fireTimestamp
Returns the firing timestamp of the current timer. -
window
Returns the window in which the timer is firing. -
timeDomain
Returns the time domain of the current timer.
-