|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface HFileBlock.FSReader
A full-fledged reader with iteration ability.
| Method Summary | |
|---|---|
HFileBlock.BlockIterator |
blockRange(long startOffset,
long endOffset)
Creates a block iterator over the given portion of the HFile. |
void |
closeStreams()
Closes the backing streams |
HFileBlock |
readBlockData(long offset,
long onDiskSize,
int uncompressedSize,
boolean pread)
Reads the block at the given offset in the file with the given on-disk size and uncompressed size. |
| Method Detail |
|---|
HFileBlock readBlockData(long offset,
long onDiskSize,
int uncompressedSize,
boolean pread)
throws IOException
offset - onDiskSize - the on-disk size of the entire block, including all
applicable headers, or -1 if unknownuncompressedSize - the uncompressed size of the compressed part of
the block, or -1 if unknown
IOException
HFileBlock.BlockIterator blockRange(long startOffset,
long endOffset)
HFile.
The iterator returns blocks starting with offset such that offset <=
startOffset < endOffset.
startOffset - the offset of the block to start iteration withendOffset - the offset to end iteration at (exclusive)
void closeStreams()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||