public static interface DoFnWithContext.ExtraContextFactory<InputT,OutputT>
The methods on this interface are called by DoFnReflector before invoking an
annotated DoFnWithContext.StartBundle, DoFnWithContext.ProcessElement or DoFnWithContext.FinishBundle method that
has indicated it needs the given extra context.
In the case of DoFnWithContext.ProcessElement it is called once per invocation of
DoFnWithContext.ProcessElement.
| Modifier and Type | Method and Description |
|---|---|
BoundedWindow |
window()
Construct the
BoundedWindow to use within a DoFnWithContext that
needs it. |
org.apache.beam.sdk.util.WindowingInternals<InputT,OutputT> |
windowingInternals()
Construct the
WindowingInternals to use within a DoFnWithContext that
needs it. |
BoundedWindow window()
BoundedWindow to use within a DoFnWithContext that
needs it. This is called if the DoFnWithContext.ProcessElement method has a parameter of type
BoundedWindow.BoundedWindow of the element currently being processed.org.apache.beam.sdk.util.WindowingInternals<InputT,OutputT> windowingInternals()
WindowingInternals to use within a DoFnWithContext that
needs it. This is called if the DoFnWithContext.ProcessElement method has a parameter of type
WindowingInternals.