|
||||||||||
| 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,
DatanodeStorageInfo[] storages)
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, isUnderConstruction, numBlocks |
| Method Detail |
|---|
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.BlockCollectionIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||