public class HFileBlockReader extends Object
| Constructor and Description |
|---|
HFileBlockReader(HFileContext context,
SeekableDataInputStream stream,
long startOffset,
long endOffset)
Instantiates the
HFileBlockReader. |
| Modifier and Type | Method and Description |
|---|---|
HFileBlock |
nextBlock(HFileBlockType expectedBlockType)
Reads the next block based on the expected block type.
|
public HFileBlockReader(HFileContext context, SeekableDataInputStream stream, long startOffset, long endOffset)
HFileBlockReader.context - HFile context.stream - input data.startOffset - start offset to read from.endOffset - end offset to stop at.public HFileBlock nextBlock(HFileBlockType expectedBlockType) throws IOException
expectedBlockType - expected block type.HFileBlock instance matching the expected block type.IOException - if the type of next block does not match the expected type.Copyright © 2024 The Apache Software Foundation. All rights reserved.