Uses of Class
org.apache.hadoop.hdfs.server.namenode.INode.ReclaimContext
Packages that use INode.ReclaimContext
Package
Description
-
Uses of INode.ReclaimContext in org.apache.hadoop.hdfs.server.namenode
Methods in org.apache.hadoop.hdfs.server.namenode that return INode.ReclaimContextModifier and TypeMethodDescriptionINode.ReclaimContext.getCopy()make a copy with the same collectedBlocks, removedINodes, and removedUCFiles but a new quotaDelta.Methods in org.apache.hadoop.hdfs.server.namenode with parameters of type INode.ReclaimContextModifier and TypeMethodDescriptionabstract voidINode.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.voidINodeDirectory.cleanSubtree(INode.ReclaimContext reclaimContext, int snapshotId, int priorSnapshotId) voidINodeFile.cleanSubtree(INode.ReclaimContext reclaimContext, int snapshot, int priorSnapshotId) voidINodeReference.cleanSubtree(INode.ReclaimContext reclaimContext, int snapshot, int prior) voidINodeReference.DstReference.cleanSubtree(INode.ReclaimContext reclaimContext, int snapshot, int prior) voidINodeReference.WithName.cleanSubtree(INode.ReclaimContext reclaimContext, int snapshot, int prior) voidINodeSymlink.cleanSubtree(INode.ReclaimContext reclaimContext, int snapshotId, int priorSnapshotId) voidINodeDirectory.cleanSubtreeRecursively(INode.ReclaimContext reclaimContext, int snapshot, int prior, Map<INode, INode> excludedNodes) Call cleanSubtree(..) recursively down the subtree.voidINodeFile.clearFile(INode.ReclaimContext reclaimContext) abstract voidINode.destroyAndCollectBlocks(INode.ReclaimContext reclaimContext) Destroy self and clear everything!voidINodeDirectory.destroyAndCollectBlocks(INode.ReclaimContext reclaimContext) voidINodeFile.destroyAndCollectBlocks(INode.ReclaimContext reclaimContext) voidINodeReference.destroyAndCollectBlocks(INode.ReclaimContext reclaimContext) voidINodeReference.DstReference.destroyAndCollectBlocks(INode.ReclaimContext reclaimContext) Destroy self and clear everything!voidINodeReference.WithName.destroyAndCollectBlocks(INode.ReclaimContext reclaimContext) voidINodeSymlink.destroyAndCollectBlocks(INode.ReclaimContext reclaimContext) INodeDirectory.removeSnapshot(INode.ReclaimContext reclaimContext, String snapshotName, long mtime, SnapshotManager snapshotManager) Delete a snapshot. -
Uses of INode.ReclaimContext in org.apache.hadoop.hdfs.server.namenode.snapshot
Methods in org.apache.hadoop.hdfs.server.namenode.snapshot with parameters of type INode.ReclaimContextModifier and TypeMethodDescriptionvoidDirectoryWithSnapshotFeature.cleanDirectory(INode.ReclaimContext reclaimContext, INodeDirectory currentINode, int snapshot, int prior) voidFileWithSnapshotFeature.cleanFile(INode.ReclaimContext reclaimContext, INodeFile file, int snapshotId, int priorSnapshotId, byte storagePolicyId) voidDirectoryWithSnapshotFeature.clear(INode.ReclaimContext reclaimContext, INodeDirectory currentINode) voidFileWithSnapshotFeature.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.voidSnapshotManager.deleteSnapshot(INodesInPath iip, String snapshotName, INode.ReclaimContext reclaimContext, long now) Delete a snapshot for a snapshottable directorystatic voidDirectoryWithSnapshotFeature.destroyDstSubtree(INode.ReclaimContext reclaimContext, INode inode, int snapshot, int prior) Destroy a subtree under a DstReference node.DirectorySnapshottableFeature.removeSnapshot(INode.ReclaimContext reclaimContext, INodeDirectory snapshotRoot, String snapshotName, long now, SnapshotManager snapshotManager) Remove the snapshot with the given name fromDirectorySnapshottableFeature.snapshotsByNames, and delete all the corresponding DirectoryDiff.voidFileWithSnapshotFeature.updateQuotaAndCollectBlocks(INode.ReclaimContext reclaimContext, INodeFile file, FileDiff removed)