Class INode.BlocksMapUpdateInfo
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.INode.BlocksMapUpdateInfo
- Enclosing class:
- INode
Information used for updating the blocksMap when deleting files.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe blocks whose replication factor need to be updated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDeleteBlock(BlockInfo toDelete) Add a to-be-deleted block into thetoDeleteListvoidaddUpdateReplicationFactor(BlockInfo block, short targetRepl) voidclear()CleartoDeleteList
-
Constructor Details
-
BlocksMapUpdateInfo
public BlocksMapUpdateInfo()
-
-
Method Details
-
getToDeleteList
- Returns:
- The list of blocks that need to be removed from blocksMap
-
toUpdateReplicationInfo
-
addDeleteBlock
Add a to-be-deleted block into thetoDeleteList- Parameters:
toDelete- the to-be-deleted block
-
addUpdateReplicationFactor
-
clear
public void clear()CleartoDeleteList
-