public abstract class DoFn.FinishBundleContext
extends java.lang.Object
DoFn.FinishBundle
method.Constructor and Description |
---|
FinishBundleContext() |
Modifier and Type | Method and Description |
---|---|
abstract PipelineOptions |
getPipelineOptions()
|
abstract void |
output(OutputT output,
Instant timestamp,
BoundedWindow window)
Adds the given element to the main output
PCollection at the given
timestamp in the given window. |
abstract <T> void |
output(TupleTag<T> tag,
T output,
Instant timestamp,
BoundedWindow window)
Adds the given element to the output
PCollection with the given tag at the given
timestamp in the given window. |
public abstract PipelineOptions getPipelineOptions()
PipelineOptions
specified with the PipelineRunner
invoking this DoFn
. The PipelineOptions
will be the default running via DoFnTester
.public abstract void output(OutputT output, Instant timestamp, BoundedWindow window)
PCollection
at the given
timestamp in the given window.
Once passed to output
the element should not be modified in
any way.
Note: A splittable DoFn
is not allowed to output from the
DoFn.FinishBundle
method.
public abstract <T> void output(TupleTag<T> tag, T output, Instant timestamp, BoundedWindow window)
PCollection
with the given tag at the given
timestamp in the given window.
Once passed to output
the element should not be modified in any way.
Note: A splittable DoFn
is not allowed to output from the DoFn.FinishBundle
method.