public class HFileLeafIndexBlock extends HFileBlock
HFileBlockType.LEAF_INDEX block, as
part of a multi-level block index.byteBuff, bytesPerChecksum, compressedByteBuff, context, HFILEBLOCK_HEADER_SIZE, HFILEBLOCK_HEADER_SIZE_NO_CHECKSUM, onDiskSizeWithoutHeader, sizeCheckSum, startOffsetInBuff, startOffsetInCompressedBuff, uncompressedEndOffset, uncompressedSizeWithoutHeader| Modifier | Constructor and Description |
|---|---|
protected |
HFileLeafIndexBlock(HFileContext context,
byte[] byteBuff,
int startOffsetInBuff) |
protected |
HFileLeafIndexBlock(HFileContext context,
HFileBlockType blockType,
byte[] byteBuff,
int startOffsetInBuff) |
| Modifier and Type | Method and Description |
|---|---|
protected ByteBuffer |
getUncompressedBlockDataToWrite()
Returns serialized "data" part of the block.
|
List<BlockIndexEntry> |
readBlockIndex()
Reads the index block and returns the block index entries.
|
allocateBufferForUnpacking, getBlockType, getByteBuff, getOnDiskSizeWithHeader, getStartOffsetInBuffForWrite, parse, serialize, setStartOffsetInBuffForWrite, unpackprotected HFileLeafIndexBlock(HFileContext context, byte[] byteBuff, int startOffsetInBuff)
protected HFileLeafIndexBlock(HFileContext context, HFileBlockType blockType, byte[] byteBuff, int startOffsetInBuff)
protected ByteBuffer getUncompressedBlockDataToWrite() throws IOException
HFileBlockgetUncompressedBlockDataToWrite in class HFileBlockIOExceptionpublic List<BlockIndexEntry> readBlockIndex()
Copyright © 2025 The Apache Software Foundation. All rights reserved.