Class FsGetter

java.lang.Object
org.apache.hadoop.fs.viewfs.FsGetter

@LimitedPrivate("Common") @Unstable public class FsGetter extends Object
File system instance getter.
  • Constructor Details

    • FsGetter

      public FsGetter()
  • Method Details

    • getNewInstance

      public FileSystem getNewInstance(URI uri, Configuration conf) throws IOException
      Gets new file system instance of given uri.
      Parameters:
      uri - uri.
      conf - configuration.
      Returns:
      file system.
      Throws:
      IOException - raised on errors performing I/O.
    • get

      public FileSystem get(URI uri, Configuration conf) throws IOException
      Gets file system instance of given uri.
      Parameters:
      uri - uri.
      conf - configuration.
      Returns:
      FileSystem.
      Throws:
      IOException - raised on errors performing I/O.