public class HFileRootIndexBlock extends HFileBlock
HFileBlockType.ROOT_INDEX block.byteBuff, bytesPerChecksum, compressedByteBuff, context, HFILEBLOCK_HEADER_SIZE, HFILEBLOCK_HEADER_SIZE_NO_CHECKSUM, onDiskSizeWithoutHeader, sizeCheckSum, startOffsetInBuff, startOffsetInCompressedBuff, uncompressedEndOffset, uncompressedSizeWithoutHeader| Constructor and Description |
|---|
HFileRootIndexBlock(HFileContext context,
byte[] byteBuff,
int startOffsetInBuff) |
| Modifier and Type | Method and Description |
|---|---|
TreeMap<Key,BlockIndexEntry> |
readBlockIndex(int numEntries,
boolean contentKeyOnly)
Reads the index block and returns the block index entry to an in-memory
TreeMap
for searches. |
allocateBufferForUnpacking, getBlockType, getByteBuff, getOnDiskSizeWithHeader, parse, unpackpublic HFileRootIndexBlock(HFileContext context, byte[] byteBuff, int startOffsetInBuff)
public TreeMap<Key,BlockIndexEntry> readBlockIndex(int numEntries, boolean contentKeyOnly)
TreeMap
for searches.numEntries - the number of entries in the block.TreeMap of block index entries.Copyright © 2024 The Apache Software Foundation. All rights reserved.