Class 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 Detail

      • AbstractChannelReaderInputView

        public AbstractChannelReaderInputView​(int headerLength)
    • Method Detail

      • 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.