Package org.teiid.hdfs
Class HdfsVirtualFile
- java.lang.Object
-
- org.teiid.hdfs.HdfsVirtualFile
-
- All Implemented Interfaces:
VirtualFile
public class HdfsVirtualFile extends Object implements VirtualFile
-
-
Constructor Summary
Constructors Constructor Description HdfsVirtualFile(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.FileStatus fileStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCreationTime()longgetLastModified()StringgetName()longgetSize()InputStreamopenInputStream(boolean lock)OutputStreamopenOutputStream(boolean lock)-
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.VirtualFile
createInputStreamFactory, getStorageMode
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceVirtualFile
-
openInputStream
public InputStream openInputStream(boolean lock) throws IOException
- Specified by:
openInputStreamin interfaceVirtualFile- Throws:
IOException
-
openOutputStream
public OutputStream openOutputStream(boolean lock) throws IOException
- Specified by:
openOutputStreamin interfaceVirtualFile- Throws:
IOException
-
getLastModified
public long getLastModified()
- Specified by:
getLastModifiedin interfaceVirtualFile
-
getCreationTime
public long getCreationTime()
- Specified by:
getCreationTimein interfaceVirtualFile
-
getSize
public long getSize()
- Specified by:
getSizein interfaceVirtualFile
-
-