Example usage for Java org.apache.hadoop.fs Path fields, constructors, methods, implement or subclass
The text is from its open source code.
String | SEPARATOR The directory separator, a slash. |
char | SEPARATOR_CHAR The directory separator, a slash, as a character. |
String | CUR_DIR The current directory, ".". |
boolean | WINDOWS Whether the current host is a Windows machine. |
Path(String pathString) Construct a path from a String. | |
Path(URI aUri) Construct a path from a URI | |
Path(String parent, String child) Create a new Path based on the child path resolved against the parent path. | |
Path(Path parent, String child) Create a new Path based on the child path resolved against the parent path. | |
Path(String parent, Path child) Create a new Path based on the child path resolved against the parent path. | |
Path(Path parent, Path child) Create a new Path based on the child path resolved against the parent path. |
int | depth() Returns the number of elements in this path. |
boolean | equals(Object o) |
FileSystem | getFileSystem(Configuration conf) Return the FileSystem that owns this Path. |
String | getName() Returns the final component of this path. |
Path | getParent() Returns the parent of a path or null if at root. |
Path | getPathWithoutSchemeAndAuthority(Path path) Return a version of the given Path without the scheme information. |
int | hashCode() |
boolean | isAbsolute() Returns true if the path component (i.e. |
boolean | isAbsoluteAndSchemeAuthorityNull() Returns true if the path component (i.e. |
boolean | isRoot() Returns true if and only if this path represents the root of a file system. |
boolean | isUriPathAbsolute() Returns true if the path component (i.e. |
Path | makeQualified(URI defaultUri, Path workingDir) Returns a qualified path object. |
Path | makeQualified(FileSystem fs) Returns a qualified path object for the FileSystem 's working directory. |
Path | mergePaths(Path path1, Path path2) Merge 2 paths such that the second path is appended relative to the first. |
Path | suffix(String suffix) Adds a suffix to the final name in the path. |
String | toString() |
URI | toUri() Convert this Path to a URI. |