public class CopyingDirectedOutput<OUT> extends DirectedOutput<OUT>
DirectedOutput
that performs a shallow copy of the
StreamRecord
to ensure that multi-chaining works correctly.allOutputs, outputMap, outputSelectors, selectAllOutputs, watermarkGauge
Constructor and Description |
---|
CopyingDirectedOutput(List<OutputSelector<OUT>> outputSelectors,
List<? extends Tuple2<? extends Output<StreamRecord<OUT>>,StreamEdge>> outputs) |
Modifier and Type | Method and Description |
---|---|
void |
collect(StreamRecord<OUT> record)
Emits a record.
|
close, collect, emitLatencyMarker, emitWatermark, getWatermarkGauge, selectOutputs
public CopyingDirectedOutput(List<OutputSelector<OUT>> outputSelectors, List<? extends Tuple2<? extends Output<StreamRecord<OUT>>,StreamEdge>> outputs)
public void collect(StreamRecord<OUT> record)
Collector
collect
in interface Collector<StreamRecord<OUT>>
collect
in class DirectedOutput<OUT>
record
- The record to collect.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.