public class PathTranslator extends Object
Constructor and Description |
---|
PathTranslator()
Construct a path translator.
|
Modifier and Type | Method and Description |
---|---|
PathTranslator |
addMapping(String alluxioPath,
String ufsPath)
Add a mapping to the path translator.
|
String |
toAlluxioPath(String ufsPath)
Returns the corresponding alluxio path, for the specified ufs path.
|
public PathTranslator addMapping(String alluxioPath, String ufsPath)
alluxioPath
- the alluxio pathufsPath
- the corresponding ufs pathpublic String toAlluxioPath(String ufsPath) throws IOException
ufsPath
- the ufs path to translateIOException
- if the ufs path is not mountedCopyright © 2023. All Rights Reserved.