public class INodesInPath
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Modifier and Type | Method | Description |
|---|---|---|
static INodesInPath |
append(INodesInPath iip,
INode child,
byte[] childName) |
Extend a given INodesInPath with a child INode.
|
INodesInPath |
getExistingINodes() |
|
INode |
getINode(int i) |
|
INode[] |
getINodesArray() |
|
INode |
getLastINode() |
|
int |
getLatestSnapshotId() |
For non-snapshot paths, return the latest snapshot id found in the path.
|
INodesInPath |
getParentINodesInPath() |
|
java.lang.String |
getParentPath() |
|
java.lang.String |
getPath() |
|
java.lang.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
INodesInPath is a descendant of the
requested INodeDirectory. |
boolean |
isRaw() |
|
int |
length() |
|
static INodesInPath |
replace(INodesInPath iip,
int pos,
INode inode) |
Replace an inode of the given INodesInPath in the given position.
|
java.lang.String |
toString() |
public static INodesInPath replace(INodesInPath iip, int pos, INode inode)
pos - the position of the replacementinode - the new inodepublic static INodesInPath append(INodesInPath iip, INode child, byte[] childName)
public int getLatestSnapshotId()
public int getPathSnapshotId()
Snapshot.CURRENT_STATE_ID.public INode getINode(int i)
public INode getLastINode()
public byte[][] getPathComponents()
public byte[] getPathComponent(int i)
public java.lang.String getPath()
public java.lang.String getParentPath()
public java.lang.String getPath(int pos)
public int length()
public 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()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.