Class DoFn.FinishBundleContext

java.lang.Object
org.apache.beam.sdk.transforms.DoFn.FinishBundleContext
Enclosing class:
DoFn<InputT extends @Nullable Object,OutputT extends @Nullable Object>

public abstract class DoFn.FinishBundleContext extends Object
Information accessible while within the DoFn.FinishBundle method.
  • Constructor Details

    • FinishBundleContext

      public FinishBundleContext()
  • Method Details

    • getPipelineOptions

      @Pure public abstract PipelineOptions getPipelineOptions()
      Returns the PipelineOptions specified with the PipelineRunner invoking this DoFn.
    • output

      public 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.

      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.

    • output

      public 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.

      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.