@Internal public class RecordWriterOutput<OUT> extends Object implements OperatorChain.WatermarkGaugeExposingOutput<StreamRecord<OUT>>
Output that sends data using a RecordWriter.| Constructor and Description |
|---|
RecordWriterOutput(org.apache.flink.runtime.io.network.api.writer.RecordWriter<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<OUT>>> recordWriter,
org.apache.flink.api.common.typeutils.TypeSerializer<OUT> outSerializer,
org.apache.flink.util.OutputTag outputTag,
StreamStatusProvider streamStatusProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcastEvent(org.apache.flink.runtime.event.AbstractEvent event) |
void |
close() |
<X> void |
collect(org.apache.flink.util.OutputTag<X> outputTag,
StreamRecord<X> record)
Emits a record the side output identified by the given
OutputTag. |
void |
collect(StreamRecord<OUT> record) |
void |
emitLatencyMarker(LatencyMarker latencyMarker) |
void |
emitStreamStatus(StreamStatus streamStatus) |
void |
emitWatermark(Watermark mark)
Emits a
Watermark from an operator. |
void |
flush() |
org.apache.flink.metrics.Gauge<Long> |
getWatermarkGauge() |
public RecordWriterOutput(org.apache.flink.runtime.io.network.api.writer.RecordWriter<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<OUT>>> recordWriter, org.apache.flink.api.common.typeutils.TypeSerializer<OUT> outSerializer, org.apache.flink.util.OutputTag outputTag, StreamStatusProvider streamStatusProvider)
public void collect(StreamRecord<OUT> record)
collect in interface org.apache.flink.util.Collector<StreamRecord<OUT>>public <X> void collect(org.apache.flink.util.OutputTag<X> outputTag,
StreamRecord<X> record)
OutputOutputTag.collect in interface Output<StreamRecord<OUT>>record - The record to collect.public void emitWatermark(Watermark mark)
OutputWatermark from an operator. This watermark is broadcast to all downstream
operators.
A watermark specifies that no element with a timestamp lower or equal to the watermark timestamp will be emitted in the future.
emitWatermark in interface Output<StreamRecord<OUT>>public void emitStreamStatus(StreamStatus streamStatus)
public void emitLatencyMarker(LatencyMarker latencyMarker)
emitLatencyMarker in interface Output<StreamRecord<OUT>>public void broadcastEvent(org.apache.flink.runtime.event.AbstractEvent event)
throws IOException
IOExceptionpublic void flush()
throws IOException
IOExceptionpublic void close()
close in interface org.apache.flink.util.Collector<StreamRecord<OUT>>public org.apache.flink.metrics.Gauge<Long> getWatermarkGauge()
getWatermarkGauge in interface OperatorChain.WatermarkGaugeExposingOutput<StreamRecord<OUT>>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.