public interface MutableBlockCollection extends org.apache.hadoop.hdfs.server.blockmanagement.BlockCollection
Modifier and Type | Method and Description |
---|---|
void |
setBlock(int index,
org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo blk)
Set the block at the given index.
|
BlockInfoUnderConstruction |
setLastBlock(org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo lastBlock,
DatanodeStorageInfo[] storages)
Convert the last block of the collection to an under-construction block
and set the locations.
|
void setBlock(int index, org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo blk)
setBlock
in interface org.apache.hadoop.hdfs.server.blockmanagement.BlockCollection
BlockInfoUnderConstruction setLastBlock(org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo lastBlock, DatanodeStorageInfo[] storages) throws IOException
setLastBlock
in interface org.apache.hadoop.hdfs.server.blockmanagement.BlockCollection
IOException
Copyright © 2015 Apache Software Foundation. All Rights Reserved.