Interface BlockFileReader
-
- All Known Implementing Classes:
CachableBlockFile.Reader
public interface BlockFileReader
Provides a generic interface for a Reader for a BlockBaseFile format. Supports the minimal interface required. Read a metaBlock and a dataBlock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
ABlockReader
getDataBlock(int blockIndex)
ABlockReader
getDataBlock(long offset, long compressedSize, long rawSize)
ABlockReader
getMetaBlock(long offset, long compressedSize, long rawSize)
ABlockReader
getMetaBlock(String name)
-
-
-
Method Detail
-
getMetaBlock
ABlockReader getMetaBlock(String name) throws IOException
- Throws:
IOException
-
getDataBlock
ABlockReader getDataBlock(int blockIndex) throws IOException
- Throws:
IOException
-
close
void close() throws IOException
- Throws:
IOException
-
getMetaBlock
ABlockReader getMetaBlock(long offset, long compressedSize, long rawSize) throws IOException
- Throws:
IOException
-
getDataBlock
ABlockReader getDataBlock(long offset, long compressedSize, long rawSize) throws IOException
- Throws:
IOException
-
-