public class CompressedHeaderlessChannelReaderInputView
extends org.apache.flink.runtime.io.disk.iomanager.AbstractChannelReaderInputView
implements org.apache.flink.runtime.io.disk.iomanager.RequestDoneCallback<org.apache.flink.runtime.io.network.buffer.Buffer>, org.apache.flink.runtime.io.network.buffer.BufferRecycler
DataInputView that is backed by a BufferFileReader, making it effectively a data input stream. The view reads it data in blocks
from the underlying channel and decompress it before returning to caller. The view can only read
data that has been written by CompressedHeaderlessChannelWriterOutputView, due to block
formatting.| Constructor and Description |
|---|
CompressedHeaderlessChannelReaderInputView(org.apache.flink.runtime.io.disk.iomanager.FileIOChannel.ID id,
org.apache.flink.runtime.io.disk.iomanager.IOManager ioManager,
org.apache.flink.runtime.io.compression.BlockCompressionFactory compressionCodecFactory,
int compressionBlockSize,
int numBlocks) |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.flink.core.memory.MemorySegment> |
close() |
org.apache.flink.runtime.io.disk.iomanager.FileIOChannel |
getChannel() |
protected int |
getLimitForSegment(org.apache.flink.core.memory.MemorySegment segment) |
org.apache.flink.runtime.io.disk.iomanager.BufferFileReader |
getReader() |
boolean |
isClosed() |
protected org.apache.flink.core.memory.MemorySegment |
nextSegment(org.apache.flink.core.memory.MemorySegment current) |
void |
recycle(org.apache.flink.core.memory.MemorySegment segment) |
void |
requestFailed(org.apache.flink.runtime.io.network.buffer.Buffer buffer,
IOException e) |
void |
requestSuccessful(org.apache.flink.runtime.io.network.buffer.Buffer request) |
advance, clear, doAdvance, getCurrentPositionInSegment, getCurrentSegment, getCurrentSegmentLimit, getHeaderLength, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seekInput, skipBytes, skipBytesToReadpublic CompressedHeaderlessChannelReaderInputView(org.apache.flink.runtime.io.disk.iomanager.FileIOChannel.ID id,
org.apache.flink.runtime.io.disk.iomanager.IOManager ioManager,
org.apache.flink.runtime.io.compression.BlockCompressionFactory compressionCodecFactory,
int compressionBlockSize,
int numBlocks)
throws IOException
IOExceptionprotected org.apache.flink.core.memory.MemorySegment nextSegment(org.apache.flink.core.memory.MemorySegment current)
throws IOException
nextSegment in class org.apache.flink.runtime.memory.AbstractPagedInputViewIOExceptionpublic org.apache.flink.runtime.io.disk.iomanager.BufferFileReader getReader()
protected int getLimitForSegment(org.apache.flink.core.memory.MemorySegment segment)
getLimitForSegment in class org.apache.flink.runtime.memory.AbstractPagedInputViewpublic List<org.apache.flink.core.memory.MemorySegment> close() throws IOException
close in class org.apache.flink.runtime.io.disk.iomanager.AbstractChannelReaderInputViewIOExceptionpublic org.apache.flink.runtime.io.disk.iomanager.FileIOChannel getChannel()
getChannel in class org.apache.flink.runtime.io.disk.iomanager.AbstractChannelReaderInputViewpublic boolean isClosed()
public void requestSuccessful(org.apache.flink.runtime.io.network.buffer.Buffer request)
requestSuccessful in interface org.apache.flink.runtime.io.disk.iomanager.RequestDoneCallback<org.apache.flink.runtime.io.network.buffer.Buffer>public void requestFailed(org.apache.flink.runtime.io.network.buffer.Buffer buffer,
IOException e)
requestFailed in interface org.apache.flink.runtime.io.disk.iomanager.RequestDoneCallback<org.apache.flink.runtime.io.network.buffer.Buffer>public void recycle(org.apache.flink.core.memory.MemorySegment segment)
recycle in interface org.apache.flink.runtime.io.network.buffer.BufferRecyclerCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.