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 Summary
ConstructorsModifierConstructorDescriptionprotected
HdfsFileSystem
(FileName rootName, FileSystemOptions fileSystemOptions) Constructs file system. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCapabilities
(Collection<Capability> capabilities) void
close()
protected FileObject
createFile
(AbstractFileName name) resolveFile
(FileName name) Resolve FileName into FileObject.Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileSystem
addJunction, 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, setAttribute
Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponent
getContext, getLogger, setContext, setLogger
-
Constructor Details
-
HdfsFileSystem
Constructs 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:
addCapabilities
in classAbstractFileSystem
- See Also:
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceVfsComponent
- Overrides:
close
in classAbstractFileSystem
- See Also:
-
createFile
- Specified by:
createFile
in classAbstractFileSystem
- Throws:
Exception
- See Also:
-
resolveFile
Resolve FileName into FileObject.- Specified by:
resolveFile
in interfaceFileSystem
- Overrides:
resolveFile
in classAbstractFileSystem
- Parameters:
name
- The name of a file on the HdfsFileSystem.- Returns:
- resolved FileObject.
- Throws:
FileSystemException
- if an error occurred.
-