Class BroadcastRecordWriter<T extends org.apache.flink.core.io.IOReadableWritable>

java.lang.Object
org.apache.flink.runtime.io.network.api.writer.RecordWriter<T>
org.apache.flink.runtime.io.network.api.writer.BroadcastRecordWriter<T>
Type Parameters:
T - the type of the record that can be emitted with this record writer
All Implemented Interfaces:
AvailabilityProvider

public final class BroadcastRecordWriter<T extends org.apache.flink.core.io.IOReadableWritable> extends RecordWriter<T>
A special record-oriented runtime result writer only for broadcast mode.

The BroadcastRecordWriter extends the RecordWriter and emits records to all channels for regular emit(IOReadableWritable).

  • Method Details

    • emit

      public void emit(T record) throws IOException
      Description copied from class: RecordWriter
      This is used to send regular records.
      Specified by:
      emit in class RecordWriter<T extends org.apache.flink.core.io.IOReadableWritable>
      Throws:
      IOException
    • broadcastEmit

      public void broadcastEmit(T record) throws IOException
      Description copied from class: RecordWriter
      This is used to broadcast streaming Watermarks in-band with records.
      Specified by:
      broadcastEmit in class RecordWriter<T extends org.apache.flink.core.io.IOReadableWritable>
      Throws:
      IOException