T - The type of elements written.public class StreamRecordWriter<T extends IOReadableWritable> extends RecordWriter<T>
writer| Constructor and Description |
|---|
StreamRecordWriter(ResultPartitionWriter writer,
ChannelSelector<T> channelSelector,
long timeout) |
StreamRecordWriter(ResultPartitionWriter 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) |
broadcastEvent, clearBuffers, flush, sendEndOfSuperstep, setReporterpublic StreamRecordWriter(ResultPartitionWriter writer, ChannelSelector<T> channelSelector, long timeout)
public StreamRecordWriter(ResultPartitionWriter writer, ChannelSelector<T> channelSelector, long timeout, String taskName)
public void emit(T record) throws IOException, InterruptedException
emit in class RecordWriter<T extends IOReadableWritable>IOExceptionInterruptedExceptionpublic void broadcastEmit(T record) throws IOException, InterruptedException
broadcastEmit in class RecordWriter<T extends IOReadableWritable>IOExceptionInterruptedExceptionpublic void close()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.