Interface RecordWriterDelegate<T extends org.apache.flink.core.io.IOReadableWritable>

All Superinterfaces:
AutoCloseable, AvailabilityProvider
All Known Implementing Classes:
MultipleRecordWriters, NonRecordWriter, SingleRecordWriter

public interface RecordWriterDelegate<T extends org.apache.flink.core.io.IOReadableWritable> extends AvailabilityProvider, AutoCloseable
The record writer delegate provides the availability function for task processor, and it might represent a single RecordWriter or multiple RecordWriter instances in specific implementations.
  • Method Details

    • broadcastEvent

      void broadcastEvent(AbstractEvent event) throws IOException
      Broadcasts the provided event to all the internal record writer instances.
      Parameters:
      event - the event to be emitted to all the output channels.
      Throws:
      IOException
    • getRecordWriter

      RecordWriter<T> getRecordWriter(int outputIndex)
      Returns the internal actual record writer instance based on the output index.
      Parameters:
      outputIndex - the index respective to the record writer instance.
    • setMaxOverdraftBuffersPerGate

      void setMaxOverdraftBuffersPerGate(int maxOverdraftBuffersPerGate)
      Sets the max overdraft buffer size of per gate.