Class AbstractS3FileSystemFactory

    • Constructor Detail

      • AbstractS3FileSystemFactory

        protected AbstractS3FileSystemFactory​(String name,
                                              HadoopConfigLoader hadoopConfigLoader)
    • Method Detail

      • configure

        public void configure​(Configuration config)
        Description copied from interface: Plugin
        Optional method for plugins to pick up settings from the configuration.
        Specified by:
        configure in interface Plugin
        Parameters:
        config - The configuration to apply to the plugin.
      • create

        public FileSystem create​(URI fsUri)
                          throws IOException
        Description copied from interface: FileSystemFactory
        Creates a new file system for the given file system URI. The URI describes the type of file system (via its scheme) and optionally the authority (for example the host) of the file system.
        Specified by:
        create in interface FileSystemFactory
        Parameters:
        fsUri - The URI that describes the file system.
        Returns:
        A new instance of the specified file system.
        Throws:
        IOException - Thrown if the file system could not be instantiated.
      • createHadoopFileSystem

        protected abstract org.apache.hadoop.fs.FileSystem createHadoopFileSystem()
      • getInitURI

        protected abstract URI getInitURI​(URI fsUri,
                                          org.apache.hadoop.conf.Configuration hadoopConfig)
      • getS3AccessHelper

        @Nullable
        protected abstract S3AccessHelper getS3AccessHelper​(org.apache.hadoop.fs.FileSystem fs)