public abstract class AbstractChannelReaderInputView extends AbstractPagedInputView
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.headerLength| 构造器和说明 |
|---|
AbstractChannelReaderInputView(int headerLength) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract List<org.apache.flink.core.memory.MemorySegment> |
close()
Closes this InputView, closing the underlying reader and returning all memory segments.
|
abstract FileIOChannel |
getChannel()
Get the underlying channel.
|
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, skipBytesToReadpublic abstract List<org.apache.flink.core.memory.MemorySegment> close() throws IOException
IOException - Thrown, if the underlying reader could not be properly closed.public abstract FileIOChannel getChannel()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.