public class CompressedPageFileInput extends Object implements PageFileInput
RandomAccessFile
.Constructor and Description |
---|
CompressedPageFileInput(RandomAccessFile file,
int pageSize,
BlockCompressionFactory compressionFactory,
long uncompressedBytes,
long[] pagePositions) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
RandomAccessFile |
file() |
int |
pageSize() |
byte[] |
readPage(int pageIndex) |
byte[] |
readPosition(long position,
int length) |
long |
uncompressBytes() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public CompressedPageFileInput(RandomAccessFile file, int pageSize, BlockCompressionFactory compressionFactory, long uncompressedBytes, long[] pagePositions)
public RandomAccessFile file()
file
in interface PageFileInput
public long uncompressBytes()
uncompressBytes
in interface PageFileInput
public int pageSize()
pageSize
in interface PageFileInput
public byte[] readPage(int pageIndex) throws IOException
readPage
in interface PageFileInput
IOException
public byte[] readPosition(long position, int length) throws IOException
readPosition
in interface PageFileInput
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.