Package org.apache.hadoop.fs.viewfs
Class InodeTree.INodeLink<T>
java.lang.Object
org.apache.hadoop.fs.viewfs.InodeTree.INodeLink<T>
An internal class to represent a mount link.
A mount link can be single dir link or a merge dir link.
A merge dir link is a merge (junction) of links to dirs:
example : merge of 2 dirs
/users -> hdfs:nn1//users
/users -> hdfs:nn2//users
For a merge, each target is checked to be dir when created but if target
is changed later it is then ignored (a dir with null entries)
-
Method Summary
Modifier and TypeMethodDescriptionGet the instance of FileSystem to use, creating one if needed.Get the target of the link.
-
Method Details
-
getTargetLink
Get the target of the link. If a merge link then it returned as "," separated URI list.- Returns:
- the path.
-
getTargetFileSystem
Get the instance of FileSystem to use, creating one if needed.- Returns:
- An Initialized instance of T
- Throws:
IOException- raised on errors performing I/O.
-