Class ChannelSelectorRecordWriter<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.ChannelSelectorRecordWriter<T>
Type Parameters:
T - the type of the record that can be emitted with this record writer
All Implemented Interfaces:
AvailabilityProvider

public final class ChannelSelectorRecordWriter<T extends org.apache.flink.core.io.IOReadableWritable> extends RecordWriter<T>
A regular record-oriented runtime result writer.

The ChannelSelectorRecordWriter extends the RecordWriter and emits records to the channel selected by the ChannelSelector 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
    • getChannelSelector

      @VisibleForTesting public ChannelSelector<T> getChannelSelector()