public class CopyingBroadcastingOutput extends BroadcastingOutput
BroadcastingOutput
that performs a shallow copy of the StreamRecord
to ensure that multi-output works correctly.
The functionality of this class is similar to OperatorChain#CopyingBroadcastingOutputCollector
.
outputs
Constructor and Description |
---|
CopyingBroadcastingOutput(Output<StreamRecord<RowData>>[] outputs) |
Modifier and Type | Method and Description |
---|---|
<X> void |
collect(OutputTag<X> outputTag,
StreamRecord<X> record)
Emits a record to the side output identified by the given
OutputTag . |
void |
collect(StreamRecord<RowData> record)
Emits a record.
|
close, emitLatencyMarker, emitRecordAttributes, emitWatermark, emitWatermarkStatus
public CopyingBroadcastingOutput(Output<StreamRecord<RowData>>[] outputs)
public void collect(StreamRecord<RowData> record)
Collector
collect
in interface Collector<StreamRecord<RowData>>
collect
in class BroadcastingOutput
record
- The record to collect.public <X> void collect(OutputTag<X> outputTag, StreamRecord<X> record)
Output
OutputTag
.collect
in interface Output<StreamRecord<RowData>>
collect
in class BroadcastingOutput
record
- The record to collect.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.