Class AbstractChannelReaderInputView

java.lang.Object
org.apache.flink.runtime.memory.AbstractPagedInputView
org.apache.flink.runtime.io.disk.iomanager.AbstractChannelReaderInputView
All Implemented Interfaces:
DataInput, org.apache.flink.core.memory.DataInputView
Direct Known Subclasses:
ChannelReaderInputView

public abstract class AbstractChannelReaderInputView extends AbstractPagedInputView
A DataInputView that is backed by a FileIOChannel, making it effectively a data input stream. The view reads it data in blocks from the underlying channel. The view can only read data that has been written by a ChannelWriterOutputView, due to block formatting.
  • Constructor Details

    • AbstractChannelReaderInputView

      public AbstractChannelReaderInputView(int headerLength)
  • Method Details

    • close

      public abstract List<org.apache.flink.core.memory.MemorySegment> close() throws IOException
      Closes this InputView, closing the underlying reader and returning all memory segments.
      Returns:
      A list containing all memory segments originally supplied to this view.
      Throws:
      IOException - Thrown, if the underlying reader could not be properly closed.
    • getChannel

      public abstract FileIOChannel getChannel()
      Get the underlying channel.