Class DoFnOperator.BufferedOutputManager<OutputT>
- java.lang.Object
-
- org.apache.beam.runners.flink.translation.wrappers.streaming.DoFnOperator.BufferedOutputManager<OutputT>
-
- All Implemented Interfaces:
org.apache.beam.sdk.util.WindowedValueMultiReceiver
- Enclosing class:
- DoFnOperator<PreInputT,InputT,OutputT>
public static class DoFnOperator.BufferedOutputManager<OutputT> extends java.lang.Object implements org.apache.beam.sdk.util.WindowedValueMultiReceiverAWindowedValueReceiverthat can buffer its outputs. UsesPushedBackElementsHandlerto buffer the data. Buffering data is necessary because no elements can be emitted duringsnapshotStatewhich is called when the checkpoint barrier already has been sent downstream. Emitting elements would break the flow of checkpoint barrier and violate exactly-once semantics.This buffering can be deactived using
FlinkPipelineOptions#setFinishBundleBeforeCheckpointing(true). If activated, we flush out bundle data before the barrier is sent downstream. This is done viaprepareSnapshotPreBarrier. When Flink supports unaligned checkpoints, this should become the default and this class should be removed as in https://github.com/apache/beam/pull/9652.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidoutput(org.apache.beam.sdk.values.TupleTag<T> tag, org.apache.beam.sdk.values.WindowedValue<T> value)
-
-
-
Field Detail
-
output
protected final org.apache.flink.streaming.api.operators.Output<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.beam.sdk.values.WindowedValue<OutputT>>> output
-
-