public interface MutableBlockCollection extends BlockCollection
| Modifier and Type | Method and Description |
|---|---|
void |
setBlock(int index,
BlockInfo blk)
Set the block at the given index.
|
BlockInfoUnderConstruction |
setLastBlock(BlockInfo lastBlock,
DatanodeDescriptor[] locations)
Convert the last block of the collection to an under-construction block
and set the locations.
|
computeContentSummary, getBlockReplication, getBlocks, getLastBlock, getName, getPreferredBlockSize, numBlocksvoid setBlock(int index,
BlockInfo blk)
BlockInfoUnderConstruction setLastBlock(BlockInfo lastBlock, DatanodeDescriptor[] locations) throws IOException
IOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.