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.
Modifier and Type | Interface and Description |
---|---|
static interface |
HsSubpartitionFileReader.Factory
Factory to create
HsSubpartitionFileReader . |
Modifier and Type | Method and Description |
---|---|
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<MemorySegment> buffers,
BufferRecycler recycler)
Read data from disk.
|
compareTo
consumeBuffer, getBacklog, peekNextToConsumeDataType, releaseDataView
void prepareForScheduling()
HsSubpartitionFileReader
is scheduled to read data.void readBuffers(Queue<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.IOException
void fail(Throwable failureCause)
HsSubpartitionFileReader
caused by failureCause.failureCause
- represents the reason why it failed.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.