public class IndexDecoder
extends java.lang.Object
Constructor and Description |
---|
IndexDecoder(SeekableInputStream in,
StreamFlags streamFooterFlags,
long streamPadding,
int memoryLimit) |
Modifier and Type | Method and Description |
---|---|
long |
getIndexSize() |
long |
getLargestBlockSize() |
int |
getMemoryUsage() |
int |
getRecordCount() |
StreamFlags |
getStreamFlags() |
long |
getStreamSize() |
long |
getUncompressedSize() |
boolean |
hasRecord(int blockNumber) |
boolean |
hasUncompressedOffset(long pos) |
void |
locateBlock(BlockInfo info,
long target) |
void |
setBlockInfo(BlockInfo info,
int blockNumber) |
void |
setOffsets(IndexDecoder prev) |
public IndexDecoder(SeekableInputStream in, StreamFlags streamFooterFlags, long streamPadding, int memoryLimit) throws java.io.IOException
java.io.IOException
public void setOffsets(IndexDecoder prev)
public int getMemoryUsage()
public StreamFlags getStreamFlags()
public int getRecordCount()
public long getUncompressedSize()
public long getLargestBlockSize()
public boolean hasUncompressedOffset(long pos)
public boolean hasRecord(int blockNumber)
public void locateBlock(BlockInfo info, long target)
public void setBlockInfo(BlockInfo info, int blockNumber)
public long getIndexSize()
public long getStreamSize()