| Package | Description |
|---|---|
| org.apache.hadoop.hdfs.server.blockmanagement | |
| org.apache.hadoop.hdfs.server.namenode |
| Modifier and Type | Method | Description |
|---|---|---|
BlockInfo |
BlockManager.addBlockCollection(BlockInfo block,
BlockCollection bc) |
|
BlockInfo |
BlockManager.addBlockCollectionWithCheck(BlockInfo block,
BlockCollection bc) |
Do some check when adding a block to blocksmap.
|
void |
BlockManager.checkRedundancy(BlockCollection bc) |
Check sufficient redundancy of the blocks in the collection.
|
boolean |
BlockManager.commitOrCompleteLastBlock(BlockCollection bc,
org.apache.hadoop.hdfs.protocol.Block commitBlock,
INodesInPath iip) |
Commit the last block of the file and mark it as complete if it has
meets the minimum redundancy requirement
|
org.apache.hadoop.hdfs.protocol.LocatedBlock |
BlockManager.convertLastBlockToUnderConstruction(BlockCollection bc,
long bytesToRemove) |
Convert the last block of the file to an under construction block.
|
protected boolean |
DatanodeAdminManager.isSufficient(BlockInfo block,
BlockCollection bc,
NumberReplicas numberReplicas,
boolean isDecommission,
boolean isMaintenance) |
Checks whether a block is sufficiently replicated/stored for
DECOMMISSION_INPROGRESS or ENTERING_MAINTENANCE datanodes.
|
protected void |
DatanodeAdminManager.logBlockReplicationInfo(BlockInfo block,
BlockCollection bc,
DatanodeDescriptor srcNode,
NumberReplicas num,
java.lang.Iterable<DatanodeStorageInfo> storages) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
INodeFile |
I-node for closed file.
|
| Modifier and Type | Method | Description |
|---|---|---|
BlockCollection |
Namesystem.getBlockCollection(long id) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.