org.apache.accumulo.core.file.blockfile
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
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
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.