org.apache.hadoop.hdfs.server.namenode
Class INodesInPath

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.namenode.INodesInPath

public class INodesInPath
extends Object

Contains INodes information resolved from a given path.


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Method Summary
 org.apache.hadoop.hdfs.server.namenode.INode getINode(int i)
           
 org.apache.hadoop.hdfs.server.namenode.INode getLastINode()
           
 int getLatestSnapshotId()
          For non-snapshot paths, return the latest snapshot id found in the path.
 int getPathSnapshotId()
          For snapshot paths, return the id of the snapshot specified in the path.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Method Detail

getLatestSnapshotId

public int getLatestSnapshotId()
For non-snapshot paths, return the latest snapshot id found in the path.


getPathSnapshotId

public int getPathSnapshotId()
For snapshot paths, return the id of the snapshot specified in the path. For non-snapshot paths, return Snapshot.CURRENT_STATE_ID.


getINode

public org.apache.hadoop.hdfs.server.namenode.INode getINode(int i)
Returns:
the i-th inode if i >= 0; otherwise, i < 0, return the (length + i)-th inode.

getLastINode

public org.apache.hadoop.hdfs.server.namenode.INode getLastINode()
Returns:
the last inode.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Apache Software Foundation. All Rights Reserved.