T - The type of elements written.@Internal
public class StreamRecordWriter<T extends org.apache.flink.core.io.IOReadableWritable>
extends org.apache.flink.runtime.io.network.api.writer.RecordWriter<T>
| Constructor and Description |
|---|
StreamRecordWriter(org.apache.flink.runtime.io.network.api.writer.ResultPartitionWriter writer,
org.apache.flink.runtime.io.network.api.writer.ChannelSelector<T> channelSelector,
long timeout) |
StreamRecordWriter(org.apache.flink.runtime.io.network.api.writer.ResultPartitionWriter writer,
org.apache.flink.runtime.io.network.api.writer.ChannelSelector<T> channelSelector,
long timeout,
String taskName) |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcastEmit(T record) |
void |
close()
Closes the writer.
|
void |
emit(T record) |
public StreamRecordWriter(org.apache.flink.runtime.io.network.api.writer.ResultPartitionWriter writer,
org.apache.flink.runtime.io.network.api.writer.ChannelSelector<T> channelSelector,
long timeout)
public void emit(T record) throws IOException, InterruptedException
emit in class org.apache.flink.runtime.io.network.api.writer.RecordWriter<T extends org.apache.flink.core.io.IOReadableWritable>IOExceptionInterruptedExceptionpublic void broadcastEmit(T record) throws IOException, InterruptedException
broadcastEmit in class org.apache.flink.runtime.io.network.api.writer.RecordWriter<T extends org.apache.flink.core.io.IOReadableWritable>IOExceptionInterruptedExceptionpublic void close()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.