T - the type of the record that can be emitted with this record writerpublic class BroadcastRecordWriter<T extends org.apache.flink.core.io.IOReadableWritable> extends RecordWriter<T>
The BroadcastRecordWriter extends the RecordWriter and handles emit(IOReadableWritable)
operation via RecordWriter.broadcastEmit(IOReadableWritable) directly in a more efficient way.
| Constructor and Description |
|---|
BroadcastRecordWriter(ResultPartitionWriter writer,
ChannelSelector<T> channelSelector,
long timeout,
String taskName) |
| Modifier and Type | Method and Description |
|---|---|
void |
emit(T record) |
broadcastEmit, broadcastEvent, clearBuffers, close, createRecordWriter, createRecordWriter, flushAll, randomEmit, setMetricGrouppublic BroadcastRecordWriter(ResultPartitionWriter writer, ChannelSelector<T> channelSelector, long timeout, String taskName)
public void emit(T record) throws IOException, InterruptedException
emit in class RecordWriter<T extends org.apache.flink.core.io.IOReadableWritable>IOExceptionInterruptedExceptionCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.