public SmallBlockTable(RawDataBlockList blockList,
RootProperty root,
int sbatStart) throws IOException {
_root = root;
ListManagedBlock[] blocks =
blockList.fetchBlocks(_root.getStartBlock());
_big_block_count = blocks.length;
_small_blocks = SmallDocumentBlock.extract(blocks);
_small_block_list = new SmallDocumentBlockList(_small_blocks);
_sbat =
new BlockAllocationTable(blockList.fetchBlocks(sbatStart),
_small_block_list);
}
Acquire a SmallBlockTable from an existing file Parameters:
blockList - the raw data from which the small block table
will be extracted
root - the root property (which contains the start block
and small block table size)
sbatStart - the start block of the SBAT
Throws:
IOException -
- exception:
IOException -
|