| Package | Description |
|---|---|
| org.apache.hadoop.hdfs.server.namenode | |
| org.apache.hadoop.hdfs.server.namenode.snapshot |
| Modifier and Type | Method | Description |
|---|---|---|
INode.ReclaimContext |
INode.ReclaimContext.getCopy() |
make a copy with the same collectedBlocks, removedINodes, and
removedUCFiles but a new quotaDelta.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract void |
INode.cleanSubtree(INode.ReclaimContext reclaimContext,
int snapshotId,
int priorSnapshotId) |
Clean the subtree under this inode and collect the blocks from the descents
for further block deletion/update.
|
void |
INodeDirectory.cleanSubtree(INode.ReclaimContext reclaimContext,
int snapshotId,
int priorSnapshotId) |
|
void |
INodeFile.cleanSubtree(INode.ReclaimContext reclaimContext,
int snapshot,
int priorSnapshotId) |
|
void |
INodeReference.cleanSubtree(INode.ReclaimContext reclaimContext,
int snapshot,
int prior) |
|
void |
INodeReference.DstReference.cleanSubtree(INode.ReclaimContext reclaimContext,
int snapshot,
int prior) |
|
void |
INodeReference.WithName.cleanSubtree(INode.ReclaimContext reclaimContext,
int snapshot,
int prior) |
|
void |
INodeSymlink.cleanSubtree(INode.ReclaimContext reclaimContext,
int snapshotId,
int priorSnapshotId) |
|
void |
INodeDirectory.cleanSubtreeRecursively(INode.ReclaimContext reclaimContext,
int snapshot,
int prior,
java.util.Map<INode,INode> excludedNodes) |
Call cleanSubtree(..) recursively down the subtree.
|
void |
INodeFile.clearFile(INode.ReclaimContext reclaimContext) |
|
abstract void |
INode.destroyAndCollectBlocks(INode.ReclaimContext reclaimContext) |
Destroy self and clear everything! If the INode is a file, this method
collects its blocks for further block deletion.
|
void |
INodeDirectory.destroyAndCollectBlocks(INode.ReclaimContext reclaimContext) |
|
void |
INodeFile.destroyAndCollectBlocks(INode.ReclaimContext reclaimContext) |
|
void |
INodeReference.destroyAndCollectBlocks(INode.ReclaimContext reclaimContext) |
|
void |
INodeReference.DstReference.destroyAndCollectBlocks(INode.ReclaimContext reclaimContext) |
Destroy self and clear everything! If the INode is a file, this method
collects its blocks for further block deletion.
|
void |
INodeReference.WithName.destroyAndCollectBlocks(INode.ReclaimContext reclaimContext) |
|
void |
INodeSymlink.destroyAndCollectBlocks(INode.ReclaimContext reclaimContext) |
|
Snapshot |
INodeDirectory.removeSnapshot(INode.ReclaimContext reclaimContext,
java.lang.String snapshotName,
long mtime,
SnapshotManager snapshotManager) |
Delete a snapshot.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
DirectoryWithSnapshotFeature.cleanDirectory(INode.ReclaimContext reclaimContext,
INodeDirectory currentINode,
int snapshot,
int prior) |
|
void |
FileWithSnapshotFeature.cleanFile(INode.ReclaimContext reclaimContext,
INodeFile file,
int snapshotId,
int priorSnapshotId,
byte storagePolicyId) |
|
void |
DirectoryWithSnapshotFeature.clear(INode.ReclaimContext reclaimContext,
INodeDirectory currentINode) |
|
void |
FileWithSnapshotFeature.collectBlocksAndClear(INode.ReclaimContext reclaimContext,
INodeFile file) |
If some blocks at the end of the block list no longer belongs to
any inode, collect them and update the block list.
|
void |
SnapshotManager.deleteSnapshot(INodesInPath iip,
java.lang.String snapshotName,
INode.ReclaimContext reclaimContext,
long now) |
Delete a snapshot for a snapshottable directory
|
static void |
DirectoryWithSnapshotFeature.destroyDstSubtree(INode.ReclaimContext reclaimContext,
INode inode,
int snapshot,
int prior) |
Destroy a subtree under a DstReference node.
|
Snapshot |
DirectorySnapshottableFeature.removeSnapshot(INode.ReclaimContext reclaimContext,
INodeDirectory snapshotRoot,
java.lang.String snapshotName,
long now,
SnapshotManager snapshotManager) |
Remove the snapshot with the given name from
DirectorySnapshottableFeature.snapshotsByNames,
and delete all the corresponding DirectoryDiff. |
void |
FileWithSnapshotFeature.updateQuotaAndCollectBlocks(INode.ReclaimContext reclaimContext,
INodeFile file,
FileDiff removed) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.