Package org.teiid.hdfs
Class HdfsConnection
- java.lang.Object
-
- org.teiid.hdfs.HdfsConnection
-
- All Implemented Interfaces:
VirtualFileConnection,Connection
public class HdfsConnection extends Object implements VirtualFileConnection
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.teiid.file.VirtualFileConnection
VirtualFileConnection.FileMetadata, VirtualFileConnection.Util
-
-
Constructor Summary
Constructors Constructor Description HdfsConnection(org.apache.hadoop.fs.FileSystem fileSystem)HdfsConnection(HdfsConnectionFactory connectionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(InputStream inputStream, String s)voidclose()VirtualFile[]getFiles(String location)booleanremove(String s)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.teiid.file.VirtualFileConnection
add, areFilesUsableAfterClose
-
-
-
-
Constructor Detail
-
HdfsConnection
public HdfsConnection(HdfsConnectionFactory connectionFactory) throws TranslatorException
- Throws:
TranslatorException
-
HdfsConnection
public HdfsConnection(org.apache.hadoop.fs.FileSystem fileSystem)
-
-
Method Detail
-
getFiles
public VirtualFile[] getFiles(String location) throws TranslatorException
- Specified by:
getFilesin interfaceVirtualFileConnection- Throws:
TranslatorException
-
add
public void add(InputStream inputStream, String s) throws TranslatorException
- Specified by:
addin interfaceVirtualFileConnection- Throws:
TranslatorException
-
remove
public boolean remove(String s) throws TranslatorException
- Specified by:
removein interfaceVirtualFileConnection- Throws:
TranslatorException
-
close
public void close()
- Specified by:
closein interfaceConnection
-
-