@Internal public class RecordWriterOutput<OUT> extends Object implements Output<StreamRecord<OUT>>
Output that sends data using a RecordWriter.| Constructor and Description |
|---|
RecordWriterOutput(StreamRecordWriter<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<OUT>>> recordWriter,
org.apache.flink.api.common.typeutils.TypeSerializer<OUT> outSerializer,
boolean enableWatermarkMultiplexing) |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcastEvent(org.apache.flink.runtime.event.AbstractEvent barrier) |
void |
clearBuffers() |
void |
close() |
void |
collect(StreamRecord<OUT> record) |
void |
emitWatermark(Watermark mark)
Emits a
Watermark from an operator. |
void |
flush() |
public RecordWriterOutput(StreamRecordWriter<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<OUT>>> recordWriter, org.apache.flink.api.common.typeutils.TypeSerializer<OUT> outSerializer, boolean enableWatermarkMultiplexing)
public void collect(StreamRecord<OUT> record)
collect in interface org.apache.flink.util.Collector<StreamRecord<OUT>>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 broadcastEvent(org.apache.flink.runtime.event.AbstractEvent barrier)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void flush()
throws IOException
IOExceptionpublic void close()
close in interface org.apache.flink.util.Collector<StreamRecord<OUT>>public void clearBuffers()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.