public interface HsSubpartitionFileReader extends Comparable<HsSubpartitionFileReader>, HsDataView
In order to access the disk as sequentially as possible HsSubpartitionFileReader need
to be able to compare priorities.
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
HsSubpartitionFileReader.Factory
Factory to create
HsSubpartitionFileReader. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
fail(Throwable failureCause)
Fail this
HsSubpartitionFileReader caused by failureCause. |
void |
prepareForScheduling()
Do prep work before this
HsSubpartitionFileReader is scheduled to read data. |
void |
readBuffers(Queue<org.apache.flink.core.memory.MemorySegment> buffers,
BufferRecycler recycler)
Read data from disk.
|
compareToconsumeBuffer, getBacklog, peekNextToConsumeDataType, releaseDataViewvoid prepareForScheduling()
HsSubpartitionFileReader is scheduled to read data.void readBuffers(Queue<org.apache.flink.core.memory.MemorySegment> buffers, BufferRecycler recycler) throws IOException
buffers - for reading, note that the ownership of the buffer taken out from the queue is
transferred to this class, and the unused buffer must be returned.recycler - to return buffer to read buffer pool.IOExceptionvoid fail(Throwable failureCause)
HsSubpartitionFileReader caused by failureCause.failureCause - represents the reason why it failed.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.