Uses of Class
org.apache.hadoop.hdfs.server.namenode.INode
Packages that use INode
Package
Description
Use the visitor pattern to visit namespace tree.
-
Uses of INode in org.apache.hadoop.hdfs.server.namenode
Subclasses of INode in org.apache.hadoop.hdfs.server.namenodeModifier and TypeClassDescriptionclassDirectory INode class.classI-node for closed file.classA reference to an inode.static classstatic classAn anonymous reference with reference count.static classA reference with a fixed name.classAnINoderepresenting a symbolic link.classINodewith additional fields including id, name, permission, access time and modification time.Fields in org.apache.hadoop.hdfs.server.namenode declared as INodeFields in org.apache.hadoop.hdfs.server.namenode with type parameters of type INodeMethods in org.apache.hadoop.hdfs.server.namenode that return INodeModifier and TypeMethodDescriptionINodeMap.get(long id) Get theINodewith the given id from the map.INodeDirectory.getChild(byte[] name, int snapshotId) FSDirectory.getInode(long id) Get the inode from inodeMap based on its inode id.GetINodeassociated with the file / directory.FSDirectory.getINode(String src, FSDirectory.DirOp dirOp) GetINodeassociated with the file / directory.INodesInPath.getINode(int i) FSDirectory.getINode4Write(String src) GetINodeassociated with the file / directory.INode[]INodeAttributeProvider.AuthorizationContext.getInodes()INode[]INodesInPath.getINodesArray()INodesInPath.getLastINode()final INodeINodeReference.getReferredINode()FSImageFormat.Loader.loadINodeWithLocalName(boolean isSnapshotINode, DataInput in, boolean updateINodeMap) FSImageFormat.Loader.loadINodeWithLocalName(boolean isSnapshotINode, DataInput in, boolean updateINodeMap, StartupProgress.Counter counter) INodeDirectory.saveChild2Snapshot(INode child, int latestSnapshotId, INode snapshotCopy) Save the child to the latest snapshot.final INodeINode.setAccessTime(long accessTime, int latestSnapshotId, boolean skipCaptureAccessTimeOnlyChangeInSnapshot) Set last access time of inode.final INodeINode.setModificationTime(long modificationTime, int latestSnapshotId) Set the last modification time of inode.protected INodeFSTreeTraverser.traverseDirInt(long startId, INode curr, List<byte[]> startAfters, FSTreeTraverser.TraverseInfo traverseInfo) Iterates the parent directory, and add direct children files to current batch.static INodeFSDirXAttrOp.unprotectedSetXAttrs(FSDirectory fsd, INodesInPath iip, List<org.apache.hadoop.fs.XAttr> xAttrs, EnumSet<org.apache.hadoop.fs.XAttrSetFlag> flag) abstract INodeINode.updateModificationTime(long mtime, int latestSnapshotId) Update modification time if it is larger than the current value.final INodeINodeReference.updateModificationTime(long mtime, int latestSnapshotId) final INodeINodeWithAdditionalFields.updateModificationTime(long mtime, int latestSnapshotId) Update modification time if it is larger than the current value.Methods in org.apache.hadoop.hdfs.server.namenode that return types with arguments of type INodeModifier and TypeMethodDescriptionINodeDirectory.getChildrenList(int snapshotId) INode.QuotaDelta.getUpdateMap()Methods in org.apache.hadoop.hdfs.server.namenode with parameters of type INodeModifier and TypeMethodDescriptionbooleanbooleanAdd a child inode to the directory.booleanINodeDirectory.addChildAtLoading(INode node) During image loading, the search is unnecessary since the insert position should always be at the end of the map given the sequence they are serialized on disk.FSDirectory.addLastINode(INodesInPath existing, INode inode, org.apache.hadoop.fs.permission.FsPermission modes, boolean checkQuota, Optional<QuotaCounts> quotaCount) Add a child to the end of the path specified by INodesInPath.final voidFSDirectory.addToInodeMap(INode inode) This method is always called with writeLock of FSDirectory held.static INodesInPathINodesInPath.append(INodesInPath iip, INode child, byte[] childName) Extend a given INodesInPath with a child INode.protected abstract booleanFSTreeTraverser.canTraverseDir(INode inode) Check whether dir is traversable or not.voidFSPermissionChecker.checkPermission(String fsOwner, String supergroup, org.apache.hadoop.security.UserGroupInformation callerUgi, INodeAttributes[] inodeAttrs, INode[] inodes, byte[][] components, int snapshotId, String path, int ancestorIndex, boolean doCheckOwner, org.apache.hadoop.fs.permission.FsAction ancestorAccess, org.apache.hadoop.fs.permission.FsAction parentAccess, org.apache.hadoop.fs.permission.FsAction access, org.apache.hadoop.fs.permission.FsAction subAccess, boolean ignoreEmptyDir) voidINodeAttributeProvider.AccessControlEnforcer.checkPermission(String fsOwner, String supergroup, org.apache.hadoop.security.UserGroupInformation callerUgi, INodeAttributes[] inodeAttrs, INode[] inodes, byte[][] pathByNameArr, int snapshotId, String path, int ancestorIndex, boolean doCheckOwner, org.apache.hadoop.fs.permission.FsAction ancestorAccess, org.apache.hadoop.fs.permission.FsAction parentAccess, org.apache.hadoop.fs.permission.FsAction access, org.apache.hadoop.fs.permission.FsAction subAccess, boolean ignoreEmptyDir) Deprecated.static booleanAclStorage.copyINodeDefaultAcl(INode child) If a default ACL is defined on a parent directory, then copies that default ACL to a newly created child file or directory.ContentSummaryComputationContext.getErasureCodingPolicyName(INode inode) Get the erasure coding policy.static byte[][]FSDirectory.getPathComponents(INode inode) Given an INode get all the path complents leading to it from the root.intINode.ReclaimContext.getSnapshotIdToBeDeleted(int snapshotId, INode inode) static booleanFSDirectory.isReservedName(INode inode) Check if a given inode name is reservedvoidAdd create directory record to edit logprotected abstract booleanFSTreeTraverser.processFileInode(INode inode, FSTreeTraverser.TraverseInfo traverseInfo) Process an Inode.final voidstatic List<org.apache.hadoop.fs.permission.AclEntry>AclStorage.readINodeAcl(INode inode, int snapshotId) Reads the existing extended ACL entries of an inode.static List<org.apache.hadoop.fs.permission.AclEntry>AclStorage.readINodeLogicalAcl(INode inode) Reads the existing ACL of an inode.static org.apache.hadoop.fs.XAttrXAttrStorage.readINodeXAttrByPrefixedName(INode inode, int snapshotId, String prefixedName) Reads the extended attribute of an inode by name with prefix.final voidRemove aINodefrom the map.booleanINodeDirectory.removeChild(INode child) Remove the specified child from this directory.booleanINodeDirectory.removeChild(INode child, int latestSnapshotId) Remove the specified child from this directory.static INodesInPathINodesInPath.replace(INodesInPath iip, int pos, INode inode) Replace an inode of the given INodesInPath in the given position.voidINodeDirectory.replaceChild(INode oldChild, INode newChild, INodeMap inodeMap) Replace the given child with a new child.INodeDirectory.saveChild2Snapshot(INode child, int latestSnapshotId, INode snapshotCopy) Save the child to the latest snapshot.static voidFSImageSerialization.saveINode2Image(INode node, DataOutput out, boolean writeUnderConstruction, SnapshotFSImageFormat.ReferenceMap referenceMap) Save one inode's attributes to the image.intINodeDirectory.searchChild(INode inode) Search for the given INode in the children list and the deleted lists of snapshots.voidprotected INodeFSTreeTraverser.traverseDirInt(long startId, INode curr, List<byte[]> startAfters, FSTreeTraverser.TraverseInfo traverseInfo) Iterates the parent directory, and add direct children files to current batch.static intINodeReference.tryRemoveReference(INode inode) Try to remove the given reference and then return the reference count.voidINodeDirectory.undoRename4DstParent(BlockStoragePolicySuite bsps, INode deletedChild, int latestSnapshotId) Undo the rename operation for the dst tree, i.e., if the rename operation (with OVERWRITE option) removes a file/dir from the dst tree, add it back and delete possible record in the deleted list.voidINodeDirectory.undoRename4ScrParent(INodeReference oldChild, INode newChild) This method is usually called by the undo section of rename.static voidAclStorage.updateINodeAcl(INode inode, List<org.apache.hadoop.fs.permission.AclEntry> newAcl, int snapshotId) Updates an inode with a new ACL.static voidXAttrStorage.updateINodeXAttrs(INode inode, List<org.apache.hadoop.fs.XAttr> xAttrs, int snapshotId) Update xattrs of inode.static INodeDirectoryCast INode to INodeDirectory.static INodeFileThe same as valueOf(inode, path, false).static INodeFileCast INode to INodeFile.Method parameters in org.apache.hadoop.hdfs.server.namenode with type arguments of type INodeModifier and TypeMethodDescriptionvoidINodeDirectory.cleanSubtreeRecursively(INode.ReclaimContext reclaimContext, int snapshot, int prior, Map<INode, INode> excludedNodes) Call cleanSubtree(..) recursively down the subtree.voidINodeDirectory.cleanSubtreeRecursively(INode.ReclaimContext reclaimContext, int snapshot, int prior, Map<INode, INode> excludedNodes) Call cleanSubtree(..) recursively down the subtree.final voidFSDirectory.removeFromInodeMap(List<? extends INode> inodes) This method is always called with writeLock of FSDirectory held.Constructors in org.apache.hadoop.hdfs.server.namenode with parameters of type INodeModifierConstructorDescriptionINodeReference(INode parent, INode referred) SnapshotAndINode(int snapshot, INode inode) WithCount(INodeReference parent, INode referred) Constructor parameters in org.apache.hadoop.hdfs.server.namenode with type arguments of type INodeModifierConstructorDescriptionReclaimContext(BlockStoragePolicySuite bsps, INode.BlocksMapUpdateInfo collectedBlocks, List<INode> removedINodes, List<Long> removedUCFiles) -
Uses of INode in org.apache.hadoop.hdfs.server.namenode.snapshot
Subclasses of INode in org.apache.hadoop.hdfs.server.namenode.snapshotMethods in org.apache.hadoop.hdfs.server.namenode.snapshot that return INodeModifier and TypeMethodDescriptionDirectoryWithSnapshotFeature.getChild(INodeDirectory currentINode, byte[] name, int snapshotId) Snapshot.Root.getChild(byte[] name, int snapshotId) static INodeSnapshotFSImageFormat.loadCreated(byte[] createdNodeName, INodeDirectory parent) Load a node stored in the created list from fsimage.DirectoryWithSnapshotFeature.saveChild2Snapshot(INodeDirectory currentINode, INode child, int latestSnapshotId, INode snapshotCopy) Used to record the modification of a symlink nodeMethods in org.apache.hadoop.hdfs.server.namenode.snapshot that return types with arguments of type INodeModifier and TypeMethodDescriptionDirectoryWithSnapshotFeature.getChildrenList(INodeDirectory currentINode, int snapshotId) Snapshot.Root.getChildrenList(int snapshotId) Methods in org.apache.hadoop.hdfs.server.namenode.snapshot with parameters of type INodeModifier and TypeMethodDescriptionbooleanDirectoryWithSnapshotFeature.addChild(INodeDirectory parent, INode inode, boolean setModTime, int latestSnapshotId) Add an inode into parent's children list.static voidDirectoryWithSnapshotFeature.destroyDstSubtree(INode.ReclaimContext reclaimContext, INode inode, int snapshot, int prior) Destroy a subtree under a DstReference node.static intSnapshot.findLatestSnapshot(INode inode, int anchor) Find the latest snapshot that 1) covers the given inode (which means the snapshot was either taken on the inode or taken on an ancestor of the inode), and 2) was taken before the given snapshot (if the given snapshot is not null).intDirectoryWithSnapshotFeature.DirectoryDiffList.findSnapshotDeleted(INode child) Find the corresponding snapshot whose deleted list contains the given inode.booleanDirectoryWithSnapshotFeature.removeChild(INodeDirectory parent, INode child, int latestSnapshotId) Remove an inode from parent's children list.booleanDirectoryWithSnapshotFeature.DirectoryDiffList.removeDeletedChild(INode child) Remove the given child from the deleted list, if there is any.booleanDirectoryWithSnapshotFeature.DirectoryDiffList.replaceCreatedChild(INode oldChild, INode newChild) Replace the given child in the created/deleted list, if there is any.DirectoryWithSnapshotFeature.saveChild2Snapshot(INodeDirectory currentINode, INode child, int latestSnapshotId, INode snapshotCopy) Used to record the modification of a symlink node -
Uses of INode in org.apache.hadoop.hdfs.server.namenode.visitor
Methods in org.apache.hadoop.hdfs.server.namenode.visitor with parameters of type INodeModifier and TypeMethodDescriptionstatic INodeCountVisitor.CountsintvoidNamespacePrintVisitor.postVisitReferred(INode referred) default voidNamespaceVisitor.postVisitReferred(INode referred) Right after visiting the given referredINode.voidNamespacePrintVisitor.preVisitReferred(INode referred) default voidNamespaceVisitor.preVisitReferred(INode referred) Right before visiting the given referredINode.static StringNamespacePrintVisitor.print2Sting(INode root) default voidVisiting the givenINode.
INodeAttributeProvider.AccessControlEnforcer.checkPermissionWithContext(AuthorizationContext)} instead