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