public class INodesInPath extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static org.slf4j.Logger | LOG | 
| Modifier and Type | Method and Description | 
|---|---|
| static INodesInPath | append(INodesInPath iip,
      org.apache.hadoop.hdfs.server.namenode.INode child,
      byte[] childName)Extend a given INodesInPath with a child INode. | 
| INodesInPath | getExistingINodes() | 
| org.apache.hadoop.hdfs.server.namenode.INode | getINode(int i) | 
| org.apache.hadoop.hdfs.server.namenode.INode[] | getINodesArray() | 
| org.apache.hadoop.hdfs.server.namenode.INode | getLastINode() | 
| int | getLatestSnapshotId()For non-snapshot paths, return the latest snapshot id found in the path. | 
| INodesInPath | getParentINodesInPath() | 
| String | getParentPath() | 
| String | getPath() | 
| String | getPath(int pos) | 
| byte[] | getPathComponent(int i) | 
| byte[][] | getPathComponents() | 
| int | getPathSnapshotId()For snapshot paths, return the id of the snapshot specified in the path. | 
| boolean | isDescendant(INodeDirectory inodeDirectory)Verify if this  INodesInPathis a descendant of the
 requestedINodeDirectory. | 
| boolean | isRaw() | 
| int | length() | 
| static INodesInPath | replace(INodesInPath iip,
       int pos,
       org.apache.hadoop.hdfs.server.namenode.INode inode)Replace an inode of the given INodesInPath in the given position. | 
| String | toString() | 
public static INodesInPath replace(INodesInPath iip, int pos, org.apache.hadoop.hdfs.server.namenode.INode inode)
pos - the position of the replacementinode - the new inodepublic static INodesInPath append(INodesInPath iip, org.apache.hadoop.hdfs.server.namenode.INode child, byte[] childName)
public int getLatestSnapshotId()
public int getPathSnapshotId()
Snapshot.CURRENT_STATE_ID.public org.apache.hadoop.hdfs.server.namenode.INode getINode(int i)
public org.apache.hadoop.hdfs.server.namenode.INode getLastINode()
public byte[][] getPathComponents()
public byte[] getPathComponent(int i)
public String getPath()
public String getParentPath()
public String getPath(int pos)
public int length()
public org.apache.hadoop.hdfs.server.namenode.INode[] getINodesArray()
public INodesInPath getParentINodesInPath()
public boolean isDescendant(INodeDirectory inodeDirectory)
INodesInPath is a descendant of the
 requested INodeDirectory.inodeDirectory - the ancestor directorypublic INodesInPath getExistingINodes()
public boolean isRaw()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.