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
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.-
Field Summary
Fields inherited from class org.apache.flink.runtime.memory.AbstractPagedInputView
headerLength -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract List<org.apache.flink.core.memory.MemorySegment>close()Closes this InputView, closing the underlying reader and returning all memory segments.abstract FileIOChannelGet the underlying channel.Methods inherited from class org.apache.flink.runtime.memory.AbstractPagedInputView
advance, clear, doAdvance, getCurrentPositionInSegment, getCurrentSegment, getCurrentSegmentLimit, getHeaderLength, getLimitForSegment, nextSegment, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seekInput, skipBytes, skipBytesToRead
-
Constructor Details
-
AbstractChannelReaderInputView
public AbstractChannelReaderInputView(int headerLength)
-
-
Method Details
-
close
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
Get the underlying channel.
-