public class HadoopFilePath extends Object implements Path
| Constructor and Description |
|---|
HadoopFilePath(String path) |
| Modifier and Type | Method and Description |
|---|---|
static HadoopFilePath |
cast(Path p) |
boolean |
equals(Object o) |
HadoopFileSystemProvider |
getFileSystemProvider()
Gets the file system provider for this path.
|
String |
getName()
Gets the last element of the path.
|
Path |
getParent()
Gets the path referring to the location containing
the path.
|
String |
getPath()
Get the HDFS specific path object for this path.
|
int |
hashCode() |
boolean |
isAbsolute()
Indicates whether the path is absolute
or relative.
|
Path |
resolve(String other)
Adds additional elements to the path.
|
Path |
toAbsolutePath()
Converts a relative path into an absolute
path.
|
File |
toFile()
Gets the local file corresponding to the path.
|
String |
toString()
Gets the string representation of the path.
|
String |
toURL()
Returns the URL string corresponding to this path.
|
public HadoopFilePath(String path)
public static HadoopFilePath cast(Path p)
public HadoopFileSystemProvider getFileSystemProvider()
PathgetFileSystemProvider in interface Pathpublic boolean isAbsolute()
PathFor most file systems, all paths are absolute.
isAbsolute in interface Pathtrue if the path starts
from the file system root, false
otherwise.public Path toAbsolutePath()
PathtoAbsolutePath in interface Pathpublic Path getParent()
Pathpublic String getName()
Pathpublic Path resolve(String other)
Pathpublic File toFile()
Pathnull.public String toString()
PathPaths.asPath(path.toString())
refers to the same location as path.
However, it may not the case that
pathString.equals(Paths.asPath(pathString).toString()).public String toURL()
Pathpublic boolean equals(Object o)
public int hashCode()
public String getPath()
Copyright © 2021 Actian Corporation. All rights reserved.