Class CopyingBroadcastingOutput
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.multipleinput.output.BroadcastingOutput
-
- org.apache.flink.table.runtime.operators.multipleinput.output.CopyingBroadcastingOutput
-
- All Implemented Interfaces:
Output<StreamRecord<RowData>>
,Collector<StreamRecord<RowData>>
public class CopyingBroadcastingOutput extends BroadcastingOutput
Special version ofBroadcastingOutput
that performs a shallow copy of theStreamRecord
to ensure that multi-output works correctly.The functionality of this class is similar to
OperatorChain#CopyingBroadcastingOutputCollector
.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.table.runtime.operators.multipleinput.output.BroadcastingOutput
outputs
-
-
Constructor Summary
Constructors Constructor Description CopyingBroadcastingOutput(Output<StreamRecord<RowData>>[] outputs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collect(StreamRecord<RowData> record)
Emits a record.<X> void
collect(OutputTag<X> outputTag, StreamRecord<X> record)
Emits a record to the side output identified by the givenOutputTag
.-
Methods inherited from class org.apache.flink.table.runtime.operators.multipleinput.output.BroadcastingOutput
close, emitLatencyMarker, emitRecordAttributes, emitWatermark, emitWatermarkStatus
-
-
-
-
Constructor Detail
-
CopyingBroadcastingOutput
public CopyingBroadcastingOutput(Output<StreamRecord<RowData>>[] outputs)
-
-
Method Detail
-
collect
public void collect(StreamRecord<RowData> record)
Description copied from interface:Collector
Emits a record.- Specified by:
collect
in interfaceCollector<StreamRecord<RowData>>
- Overrides:
collect
in classBroadcastingOutput
- Parameters:
record
- The record to collect.
-
collect
public <X> void collect(OutputTag<X> outputTag, StreamRecord<X> record)
Description copied from interface:Output
Emits a record to the side output identified by the givenOutputTag
.- Specified by:
collect
in interfaceOutput<StreamRecord<RowData>>
- Overrides:
collect
in classBroadcastingOutput
record
- The record to collect.
-
-