Package org.apache.beam.sdk.transforms
Class DoFn.FinishBundleContext
- java.lang.Object
-
- org.apache.beam.sdk.transforms.DoFn.FinishBundleContext
-
- Enclosing class:
- DoFn<InputT extends @Nullable java.lang.Object,OutputT extends @Nullable java.lang.Object>
public abstract class DoFn.FinishBundleContext extends java.lang.Object
Information accessible while within theDoFn.FinishBundle
method.
-
-
Constructor Summary
Constructors Constructor Description FinishBundleContext()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract PipelineOptions
getPipelineOptions()
abstract <T> void
output(TupleTag<T> tag, T output, org.joda.time.Instant timestamp, BoundedWindow window)
Adds the given element to the outputPCollection
with the given tag at the given timestamp in the given window.abstract void
output(OutputT output, org.joda.time.Instant timestamp, BoundedWindow window)
Adds the given element to the main outputPCollection
at the given timestamp in the given window.
-
-
-
Method Detail
-
getPipelineOptions
@Pure public abstract PipelineOptions getPipelineOptions()
-
output
public abstract void output(OutputT output, org.joda.time.Instant timestamp, BoundedWindow window)
Adds the given element to the main outputPCollection
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 theDoFn.FinishBundle
method.
-
output
public abstract <T> void output(TupleTag<T> tag, T output, org.joda.time.Instant timestamp, BoundedWindow window)
Adds the given element to the outputPCollection
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 theDoFn.FinishBundle
method.
-
-