public class INodesInPath extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
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 |
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 INodesInPath getExistingINodes()
public boolean isRaw()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.