Class InodeTree.INodeLink<T>

java.lang.Object
org.apache.hadoop.fs.viewfs.InodeTree.INodeLink<T>
Enclosing class:
InodeTree<T>

public static class InodeTree.INodeLink<T> extends Object
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 Details

    • getTargetLink

      public Path getTargetLink()
      Get the target of the link. If a merge link then it returned as "," separated URI list.
      Returns:
      the path.
    • getTargetFileSystem

      public T getTargetFileSystem() throws IOException
      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.