public interface VectoredReadable
Modifier and Type | Method and Description |
---|---|
default int |
batchSizeForVectorReads()
The batch size of data read by a single parallelism.
|
default int |
minSeekForVectorReads()
The smallest reasonable seek.
|
default int |
parallelismForVectorReads()
The read parallelism for vector reads.
|
int |
pread(long position,
byte[] buffer,
int offset,
int length)
Read up to the specified number of bytes, from a given position within a file, and return the
number of bytes read.
|
default void |
preadFully(long position,
byte[] buffer,
int offset,
int length)
Read the specified number of bytes fully, from a given position within a file.
|
default void |
readVectored(List<? extends FileRange> ranges)
Read fully a list of file ranges asynchronously from this file.
|
int pread(long position, byte[] buffer, int offset, int length) throws IOException
IOException
default void preadFully(long position, byte[] buffer, int offset, int length) throws IOException
IOException
default int minSeekForVectorReads()
default int batchSizeForVectorReads()
default int parallelismForVectorReads()
default void readVectored(List<? extends FileRange> ranges) throws IOException
As a result of the call, each range will have FileRange.setData(CompletableFuture) called with a future that when complete will have a ByteBuffer with the data from the file's range.
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.