Package org.teiid.hdfs
Class HdfsConnectionFactory
- java.lang.Object
-
- org.teiid.hdfs.HdfsConnectionFactory
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class HdfsConnectionFactory extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description HdfsConnectionFactory(HdfsConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected org.apache.hadoop.fs.FileSystem
createFileSystem(String fsUri, String resourcePath)
org.apache.hadoop.fs.FileSystem
getFileSystem()
-
-
-
Constructor Detail
-
HdfsConnectionFactory
public HdfsConnectionFactory(HdfsConfiguration config)
-
-
Method Detail
-
createFileSystem
protected org.apache.hadoop.fs.FileSystem createFileSystem(String fsUri, String resourcePath) throws TranslatorException
- Throws:
TranslatorException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getFileSystem
public org.apache.hadoop.fs.FileSystem getFileSystem() throws TranslatorException
- Throws:
TranslatorException
-
-