public class PathUtility extends Object
| Constructor and Description |
|---|
PathUtility() |
| Modifier and Type | Method and Description |
|---|---|
static String |
filePath(String path)
Convert a URL style path into it's normalized form.
|
static String |
fileSystemPath(String path)
Convert a full URL style path in the root file system path.
|
static String |
getName(String path)
Get the last file segment of the given path.
|
static String |
getParent(String path)
Get the parent directory of the given path.
|
static String |
resolve(String path,
String other)
Resolve the given path and the path segment to be appended.
|
public static String fileSystemPath(String path)
path - HDFS style pathpublic static String filePath(String path)
path - HDFS style pathpublic static String getParent(String path)
path - Hadoop style pathpublic static String resolve(String path, String other)
path - input (base) pathother - a path segment to appendCopyright © 2019 Actian Corporation. All rights reserved.