Uses of Class
org.apache.hadoop.hdfs.server.namenode.INodeDirectory
Packages that use INodeDirectory
Package
Description
Use the visitor pattern to visit namespace tree.
-
Uses of INodeDirectory in org.apache.hadoop.hdfs.server.namenode
Methods in org.apache.hadoop.hdfs.server.namenode that return INodeDirectoryModifier and TypeMethodDescriptionINode.asDirectory()Cast this inode to anINodeDirectory.final INodeDirectoryINodeDirectory.asDirectory()final INodeDirectoryINodeReference.asDirectory()final INodeDirectoryINode.getParent()FSDirectory.getRoot()static INodeDirectoryFSImageFormatPBINode.Loader.loadINodeDirectory(FsImageProto.INodeSection.INode n, FSImageFormatProtobuf.LoaderContext state) static INodeDirectoryCast INode to INodeDirectory.Methods in org.apache.hadoop.hdfs.server.namenode that return types with arguments of type INodeDirectoryMethods in org.apache.hadoop.hdfs.server.namenode with parameters of type INodeDirectoryModifier and TypeMethodDescriptionvoidINode.QuotaDelta.addQuotaDirUpdate(INodeDirectory dir, QuotaCounts update) LeaseManager.getINodeWithLeases(INodeDirectory ancestorDir) GetINodesInPathfor all files under the ancestor directory which has valid lease.final booleanINode.isAncestorDirectory(INodeDirectory dir) booleanINodesInPath.isDescendant(INodeDirectory inodeDirectory) Verify if thisINodesInPathis a descendant of the requestedINodeDirectory.booleanINodeDirectory.isDescendantOfSnapshotRoot(INodeDirectory snapshotRootDir) Check if this directory is a descendant directory of a snapshot root directory.final voidINode.setParent(INodeDirectory parent) Set parent directoryprotected voidFSTreeTraverser.traverseDir(INodeDirectory parent, long startId, byte[] startAfter, FSTreeTraverser.TraverseInfo traverseInfo) Iterate through all files directly inside parent, and recurse down directories.static voidFSImageSerialization.writeINodeDirectory(INodeDirectory node, DataOutput out) Serialize aINodeDirectoryConstructors in org.apache.hadoop.hdfs.server.namenode with parameters of type INodeDirectoryModifierConstructorDescriptionDstReference(INodeDirectory parent, INodeReference.WithCount referred, int dstSnapshotId) INodeDirectory(INodeDirectory other, boolean adopt, INode.Feature... featuresToCopy) Copy constructorWithName(INodeDirectory parent, INodeReference.WithCount referred, byte[] name, int lastSnapshotId) -
Uses of INodeDirectory in org.apache.hadoop.hdfs.server.namenode.snapshot
Subclasses of INodeDirectory in org.apache.hadoop.hdfs.server.namenode.snapshotMethods in org.apache.hadoop.hdfs.server.namenode.snapshot that return INodeDirectoryModifier and TypeMethodDescriptionSnapshotManager.checkAndGetSnapshottableAncestorDir(INodesInPath iip) Get the snapshot root directory for the given directory.SnapshotManager.getSnapshottableAncestorDir(INodesInPath iip) SnapshotManager.getSnapshottableRoot(INodesInPath iip) Find the source root directory where the snapshot will be taken for a given path.Methods in org.apache.hadoop.hdfs.server.namenode.snapshot with parameters of type INodeDirectoryModifier and TypeMethodDescriptionbooleanDirectoryWithSnapshotFeature.addChild(INodeDirectory parent, INode inode, boolean setModTime, int latestSnapshotId) Add an inode into parent's children list.DirectorySnapshottableFeature.addSnapshot(INodeDirectory snapshotRoot, SnapshotManager snapshotManager, String name, LeaseManager leaseManager, long now) Add a snapshot.voidSnapshotManager.addSnapshottable(INodeDirectory dir) Add the given snapshottable directory toSnapshotManager.snapshottables.voidDirectoryWithSnapshotFeature.cleanDirectory(INode.ReclaimContext reclaimContext, INodeDirectory currentINode, int snapshot, int prior) voidDirectoryWithSnapshotFeature.clear(INode.ReclaimContext reclaimContext, INodeDirectory currentINode) voidDirectorySnapshottableFeature.dumpTreeRecursively(INodeDirectory snapshotRoot, PrintWriter out, StringBuilder prefix, int snapshot) byte[][]DirectorySnapshottableFeature.findRenameTargetPath(INodeDirectory snapshotRoot, INodeReference.WithName wn, int snapshotId) We just found a deleted WithName node as the source of a rename operation.DirectoryWithSnapshotFeature.getChild(INodeDirectory currentINode, byte[] name, int snapshotId) DirectoryWithSnapshotFeature.getChildrenList(INodeDirectory currentINode, int snapshotId) DiffList.getMinListForRange(int startIndex, int endIndex, INodeDirectory dir) Returns the list of minimal list of elements need to combine to generate cumulative sum from startIndex to endIndex.DiffListByArrayList.getMinListForRange(int startIndex, int endIndex, INodeDirectory dir) DiffListBySkipList.getMinListForRange(int fromIndex, int toIndex, INodeDirectory dir) This function returns the minimal set of diffs required to combine in order to generate all the changes occurred between fromIndex and toIndex.DirectorySnapshottableFeature.getSnapshotByName(INodeDirectory snapshotRoot, String snapshotName) Find the snapshot matching the given name.booleanSnapshotManager.isDescendantOfSnapshotRoot(INodeDirectory dir) static INodeSnapshotFSImageFormat.loadCreated(byte[] createdNodeName, INodeDirectory parent) Load a node stored in the created list from fsimage.static voidSnapshotFSImageFormat.loadDirectoryDiffList(INodeDirectory dir, DataInput in, FSImageFormat.Loader loader) Load theSnapshotDifflist for the INodeDirectoryWithSnapshot directory.static voidSnapshotFSImageFormat.loadSnapshotList(INodeDirectory snapshottableParent, int numSnapshots, DataInput in, FSImageFormat.Loader loader) Load snapshots and snapshotQuota for a Snapshottable directory.booleanDirectoryWithSnapshotFeature.removeChild(INodeDirectory parent, INode child, int latestSnapshotId) Remove an inode from parent's children list.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.DirectoryWithSnapshotFeature.saveChild2Snapshot(INodeDirectory currentINode, INode child, int latestSnapshotId, INode snapshotCopy) Used to record the modification of a symlink nodestatic voidSnapshotFSImageFormat.saveDirectoryDiffList(INodeDirectory dir, DataOutput out, SnapshotFSImageFormat.ReferenceMap referenceMap) static voidSnapshotFSImageFormat.saveSnapshots(INodeDirectory current, DataOutput out) Save snapshots and snapshot quota for a snapshottable directory.static org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus.BeanSnapshotManager.toBean(INodeDirectory d) Method parameters in org.apache.hadoop.hdfs.server.namenode.snapshot with type arguments of type INodeDirectoryModifier and TypeMethodDescriptionvoidDirectoryWithSnapshotFeature.getSnapshotDirectory(List<INodeDirectory> snapshotDir) Get all the directories that are stored in some snapshot but not in the current children list.voidSnapshotManager.removeSnapshottable(List<INodeDirectory> toRemove) Remove snapshottable directories fromSnapshotManager.snapshottablesConstructors in org.apache.hadoop.hdfs.server.namenode.snapshot with parameters of type INodeDirectoryModifierConstructorDescriptionDirectoryDiff(int snapshotId, INodeDirectory dir, org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryWithSnapshotFeature.ChildrenDiff diff) -
Uses of INodeDirectory in org.apache.hadoop.hdfs.server.namenode.visitor
Methods in org.apache.hadoop.hdfs.server.namenode.visitor with parameters of type INodeDirectoryModifier and TypeMethodDescriptionstatic Iterable<NamespaceVisitor.Element>NamespaceVisitor.getChildren(INodeDirectory dir, int snapshot) voidNamespacePrintVisitor.visitDirectory(INodeDirectory dir, int snapshot) default voidNamespaceVisitor.visitDirectory(INodeDirectory dir, int snapshot) Visiting the givenINodeDirectory(non-recursively).default voidNamespaceVisitor.visitDirectoryRecursively(INodeDirectory dir, int snapshot) First visit the givenINodeDirectory; then the children; and then, if snapshottable, the snapshots.voidNamespacePrintVisitor.visitSnapshottable(INodeDirectory dir, DirectorySnapshottableFeature snapshottable) default voidNamespaceVisitor.visitSnapshottable(INodeDirectory dir, DirectorySnapshottableFeature snapshottable) Visiting aDirectorySnapshottableFeature.