@PublicAPIClass(maturity=EVOLVING) public class StoragePath extends Object implements Comparable<StoragePath>, Serializable
org.apache.hadoop.fs.Path class.| Modifier and Type | Field and Description |
|---|---|
static char |
COLON_CHAR |
static String |
SEPARATOR |
static char |
SEPARATOR_CHAR |
| Constructor and Description |
|---|
StoragePath(StoragePath parent,
String child) |
StoragePath(String path) |
StoragePath(String parent,
String child) |
StoragePath(URI uri) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(StoragePath o) |
int |
depth() |
boolean |
equals(Object o) |
String |
getFileExtension() |
String |
getName() |
StoragePath |
getParent() |
StoragePath |
getPathWithoutSchemeAndAuthority() |
int |
hashCode() |
boolean |
isAbsolute() |
StoragePath |
makeQualified(URI defaultUri)
Returns a qualified path object.
|
String |
toString() |
URI |
toUri() |
public static final char SEPARATOR_CHAR
public static final char COLON_CHAR
public static final String SEPARATOR
public StoragePath(URI uri)
public StoragePath(String path)
public StoragePath(StoragePath parent, String child)
@PublicAPIMethod(maturity=EVOLVING) public boolean isAbsolute()
@PublicAPIMethod(maturity=EVOLVING) public StoragePath getParent()
@PublicAPIMethod(maturity=EVOLVING) public String getName()
@PublicAPIMethod(maturity=EVOLVING) public StoragePath getPathWithoutSchemeAndAuthority()
@PublicAPIMethod(maturity=EVOLVING) public int depth()
@PublicAPIMethod(maturity=EVOLVING) public URI toUri()
@PublicAPIMethod(maturity=EVOLVING) public StoragePath makeQualified(URI defaultUri)
defaultUri - if this path is missing the scheme or authority
components, borrow them from this URI.@PublicAPIMethod(maturity=EVOLVING) public String getFileExtension()
public int compareTo(StoragePath o)
compareTo in interface Comparable<StoragePath>Copyright © 2025 The Apache Software Foundation. All rights reserved.