Class RawLocalFs

All Implemented Interfaces:
PathCapabilities

@Private @Evolving public class RawLocalFs extends DelegateToFileSystem
The RawLocalFs implementation of AbstractFileSystem. This impl delegates to the old FileSystem
  • Method Details

    • getUriDefaultPort

      public int getUriDefaultPort()
      Description copied from class: AbstractFileSystem
      The default port of this file system.
      Overrides:
      getUriDefaultPort in class DelegateToFileSystem
      Returns:
      default port of this file system's Uri scheme A uri with a port of -1 => default port;
    • getServerDefaults

      public FsServerDefaults getServerDefaults(Path f) throws IOException
      Description copied from class: AbstractFileSystem
      Return a set of server default configuration values based on path.
      Overrides:
      getServerDefaults in class DelegateToFileSystem
      Parameters:
      f - path to fetch server defaults
      Returns:
      server default configuration values for path
      Throws:
      IOException - an I/O error occurred
    • getServerDefaults

      @Deprecated public FsServerDefaults getServerDefaults() throws IOException
      Deprecated.
      Description copied from class: AbstractFileSystem
      Return a set of server default configuration values.
      Overrides:
      getServerDefaults in class DelegateToFileSystem
      Returns:
      server default configuration values
      Throws:
      IOException - an I/O error occurred
    • isValidName

      public boolean isValidName(String src)
      Description copied from class: AbstractFileSystem
      Returns true if the specified string is considered valid in the path part of a URI by this file system. The default implementation enforces the rules of HDFS, but subclasses may override this method to implement specific validation rules for specific file systems.
      Overrides:
      isValidName in class AbstractFileSystem
      Parameters:
      src - String source filename to check, path part of the URI
      Returns:
      boolean true if the specified string is considered valid