| Constructor and Description |
|---|
TfsShellUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getFilePath(String path,
TachyonConf tachyonConf)
Removes Constants.HEADER / Constants.HEADER_FT and hostname:port information from a path,
leaving only the local file path.
|
static List<File> |
getFiles(String inputPath)
Get the Files (on the local filesystem) that matches input path.
|
static List<TachyonURI> |
getTachyonURIs(TachyonFileSystem tachyonClient,
TachyonURI inputURI)
Get all the TachyonURIs that match inputURI.
|
protected static boolean |
match(String filePath,
String patternPath)
Return whether or not filePath matches patternPath
|
static String |
validatePath(String path,
TachyonConf tachyonConf)
Validates the path, verifying that it contains the
Constants.HEADER or
Constants.HEADER_FT and a hostname:port specified. |
public static String getFilePath(String path, TachyonConf tachyonConf) throws IOException
path - The path to obtain the local path fromtachyonConf - The instance of TachyonConf to be used.IOExceptionpublic static String validatePath(String path, TachyonConf tachyonConf) throws IOException
Constants.HEADER or
Constants.HEADER_FT and a hostname:port specified.path - The path to be verified.tachyonConf - The instance of TachyonConf to be used.IOException - if the given path is not valid.public static List<TachyonURI> getTachyonURIs(TachyonFileSystem tachyonClient, TachyonURI inputURI) throws IOException
tachyonClient - The client used to fetch information of Tachyon filesinputURI - the input URI (could contain wildcards)IOExceptionpublic static List<File> getFiles(String inputPath)
inputPath - The input file path (could contain wildcards)Copyright © 2015. All Rights Reserved.