public class HFileFileInfoBlock extends HFileBlock
HFileBlockType.FILE_INFO block.| Modifier and Type | Field and Description |
|---|---|
static byte[] |
PB_MAGIC |
byteBuff, bytesPerChecksum, compressedByteBuff, context, HFILEBLOCK_HEADER_SIZE, HFILEBLOCK_HEADER_SIZE_NO_CHECKSUM, onDiskSizeWithoutHeader, sizeCheckSum, startOffsetInBuff, startOffsetInCompressedBuff, uncompressedEndOffset, uncompressedSizeWithoutHeader| Constructor and Description |
|---|
HFileFileInfoBlock(HFileContext context,
byte[] byteBuff,
int startOffsetInBuff) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
byte[] value) |
boolean |
containsKey(String name) |
static HFileFileInfoBlock |
createFileInfoBlockToWrite(HFileContext context) |
ByteBuffer |
getUncompressedBlockDataToWrite()
Returns serialized "data" part of the block.
|
HFileInfo |
readFileInfo() |
allocateBufferForUnpacking, getBlockType, getByteBuff, getOnDiskSizeWithHeader, getStartOffsetInBuffForWrite, parse, serialize, setStartOffsetInBuffForWrite, unpackpublic HFileFileInfoBlock(HFileContext context, byte[] byteBuff, int startOffsetInBuff)
public static HFileFileInfoBlock createFileInfoBlockToWrite(HFileContext context)
public HFileInfo readFileInfo() throws IOException
IOExceptionpublic void add(String name, byte[] value)
public boolean containsKey(String name)
public ByteBuffer getUncompressedBlockDataToWrite() throws IOException
HFileBlockgetUncompressedBlockDataToWrite in class HFileBlockIOExceptionCopyright © 2025 The Apache Software Foundation. All rights reserved.