public interface PageFileInput extends Closeable
| Modifier and Type | Method and Description |
|---|---|
static PageFileInput |
create(File file,
int pageSize,
BlockCompressionFactory compressionFactory,
long uncompressBytes,
long[] compressPagePositions) |
RandomAccessFile |
file() |
int |
pageSize() |
byte[] |
readPage(int pageIndex) |
byte[] |
readPosition(long position,
int length) |
long |
uncompressBytes() |
RandomAccessFile file()
long uncompressBytes()
int pageSize()
byte[] readPage(int pageIndex)
throws IOException
IOExceptionbyte[] readPosition(long position,
int length)
throws IOException
IOExceptionstatic PageFileInput create(File file, int pageSize, @Nullable BlockCompressionFactory compressionFactory, long uncompressBytes, @Nullable long[] compressPagePositions) throws IOException
IOExceptionCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.