|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableBlockCollection
This interface is used by the block manager to expose a few characteristics of a collection of Block/BlockUnderConstruction.
Method Summary | |
---|---|
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,
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor[] locations)
Convert the last block of the collection to an under-construction block and set the locations. |
Methods inherited from interface org.apache.hadoop.hdfs.server.blockmanagement.BlockCollection |
---|
computeContentSummary, getBlockReplication, getBlocks, getLastBlock, getName, getPreferredBlockSize, numBlocks |
Method Detail |
---|
void setBlock(int index, org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo blk)
BlockInfoUnderConstruction setLastBlock(org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo lastBlock, org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor[] locations) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |