Class HdfsFileSystem
java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.provider.AbstractFileSystem
org.apache.commons.vfs2.provider.hdfs.HdfsFileSystem
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- FileSystem,- VfsComponent
A VFS FileSystem that interacts with HDFS.
- Since:
- 2.1
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedHdfsFileSystem(FileName rootName, FileSystemOptions fileSystemOptions) Constructs file system.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddCapabilities(Collection<Capability> capabilities) voidclose()protected FileObjectcreateFile(AbstractFileName name) resolveFile(FileName name) Resolve FileName into FileObject.Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileSystemaddJunction, addListener, closeCommunicationLink, decorateFileObject, doCloseCommunicationLink, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, setAttributeMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponentgetContext, getLogger, setContext, setLogger
- 
Constructor Details- 
HdfsFileSystemConstructs file system.- Parameters:
- rootName- Name of the root directory of this file system.
- fileSystemOptions- options for this file system instance.
 
 
- 
- 
Method Details- 
addCapabilities- Specified by:
- addCapabilitiesin class- AbstractFileSystem
- See Also:
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Specified by:
- closein interface- VfsComponent
- Overrides:
- closein class- AbstractFileSystem
- See Also:
 
- 
createFile- Specified by:
- createFilein class- AbstractFileSystem
- Throws:
- Exception
- See Also:
 
- 
resolveFileResolve FileName into FileObject.- Specified by:
- resolveFilein interface- FileSystem
- Overrides:
- resolveFilein class- AbstractFileSystem
- Parameters:
- name- The name of a file on the HdfsFileSystem.
- Returns:
- resolved FileObject.
- Throws:
- FileSystemException- if an error occurred.
 
 
-