Java org.apache.hadoop.fs Path fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.fs Path fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.fs Path.

The text is from its open source code.

Subclass

org.apache.hadoop.fs.Path has subclasses.
Click this link to see all its subclasses.

Field

StringSEPARATOR
The directory separator, a slash.
charSEPARATOR_CHAR
The directory separator, a slash, as a character.
StringCUR_DIR
The current directory, ".".
booleanWINDOWS
Whether the current host is a Windows machine.

Constructor

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.

Method

intdepth()
Returns the number of elements in this path.
booleanequals(Object o)
FileSystemgetFileSystem(Configuration conf)
Return the FileSystem that owns this Path.
StringgetName()
Returns the final component of this path.
PathgetParent()
Returns the parent of a path or null if at root.
PathgetPathWithoutSchemeAndAuthority(Path path)
Return a version of the given Path without the scheme information.
inthashCode()
booleanisAbsolute()
Returns true if the path component (i.e.
booleanisAbsoluteAndSchemeAuthorityNull()
Returns true if the path component (i.e.
booleanisRoot()
Returns true if and only if this path represents the root of a file system.
booleanisUriPathAbsolute()
Returns true if the path component (i.e.
PathmakeQualified(URI defaultUri, Path workingDir)
Returns a qualified path object.
PathmakeQualified(FileSystem fs)
Returns a qualified path object for the FileSystem 's working directory.
PathmergePaths(Path path1, Path path2)
Merge 2 paths such that the second path is appended relative to the first.
Pathsuffix(String suffix)
Adds a suffix to the final name in the path.
StringtoString()
URItoUri()
Convert this Path to a URI.