Save This Page
Home » hadoop-0.14.4 » org.apache » hadoop » fs » [javadoc | source]
org.apache.hadoop.fs
public class: Path [javadoc | source]
java.lang.Object
   org.apache.hadoop.fs.Path

All Implemented Interfaces:
    Comparable

Direct Known Subclasses:
    DfsPath

Names a file or directory in a FileSystem . Path strings use slash as the directory separator. A path string is absolute if it begins with a slash.
Field Summary
public static final  String SEPARATOR    The directory separator, a slash. 
public static final  char SEPARATOR_CHAR     
public static final  String CUR_DIR     
static final  boolean WINDOWS     
Constructor:
 public Path(String pathString) 
    Construct a path from a String. Path strings are URIs, but with unescaped elements and some additional normalization.
 public Path(String parent,
    String child) 
    Resolve a child path against a parent path.
 public Path(Path parent,
    String child) 
    Resolve a child path against a parent path.
 public Path(String parent,
    Path child) 
    Resolve a child path against a parent path.
 public Path(Path parent,
    Path child) 
    Resolve a child path against a parent path.
 public Path(String scheme,
    String authority,
    String path) 
    Construct a Path from components.
Method from org.apache.hadoop.fs.Path Summary:
compareTo,   depth,   equals,   getFileSystem,   getName,   getParent,   hashCode,   isAbsolute,   makeQualified,   suffix,   toString,   toUri
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.hadoop.fs.Path Detail:
 public int compareTo(Object o) 
 public int depth() 
    Return the number of elements in this path.
 public boolean equals(Object o) 
 public FileSystem getFileSystem(Configuration conf) throws IOException 
    Return the FileSystem that owns this Path.
 public String getName() 
    Returns the final component of this path.
 public Path getParent() 
    Returns the parent of a path or null if at root.
 public int hashCode() 
 public boolean isAbsolute() 
    True if the directory of this path is absolute.
 public Path makeQualified(FileSystem fs) 
    Returns a qualified path object.
 public Path suffix(String suffix) 
    Adds a suffix to the final name in the path.
 public String toString() 
 public URI toUri() 
    Convert this to a URI.