Package org.apache.flink.runtime.fs.hdfs
Class HadoopFsFactory
- java.lang.Object
-
- org.apache.flink.runtime.fs.hdfs.HadoopFsFactory
-
- All Implemented Interfaces:
org.apache.flink.core.fs.FileSystemFactory,org.apache.flink.core.plugin.Plugin
public class HadoopFsFactory extends Object implements org.apache.flink.core.fs.FileSystemFactory
A file system factory for Hadoop-based file systems.This factory calls Hadoop's mechanism to find a file system implementation for a given file system scheme (a
FileSystem) and wraps it as a Flink file system (aFileSystem).
-
-
Constructor Summary
Constructors Constructor Description HadoopFsFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(org.apache.flink.configuration.Configuration config)org.apache.flink.core.fs.FileSystemcreate(URI fsUri)StringgetScheme()
-
-
-
Method Detail
-
getScheme
public String getScheme()
- Specified by:
getSchemein interfaceorg.apache.flink.core.fs.FileSystemFactory
-
configure
public void configure(org.apache.flink.configuration.Configuration config)
- Specified by:
configurein interfaceorg.apache.flink.core.plugin.Plugin
-
create
public org.apache.flink.core.fs.FileSystem create(URI fsUri) throws IOException
- Specified by:
createin interfaceorg.apache.flink.core.fs.FileSystemFactory- Throws:
IOException
-
-