public class HdfsFileSystem extends AbstractFileSystem
Modifier | Constructor and Description |
---|---|
protected |
HdfsFileSystem(FileName rootName,
FileSystemOptions fileSystemOptions)
Construct file system.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addCapabilities(Collection<Capability> capabilities)
Adds the capabilities of this file system.
|
void |
close()
Closes this component.
|
protected FileObject |
createFile(AbstractFileName name)
Creates a file object.
|
FileObject |
resolveFile(FileName name)
Resolve FileName into FileObject.
|
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
getContext, getLogger, setContext, setLogger
protected HdfsFileSystem(FileName rootName, FileSystemOptions fileSystemOptions)
rootName
- Name of the root directory of this file system.fileSystemOptions
- options for this file system instance.protected void addCapabilities(Collection<Capability> capabilities)
AbstractFileSystem
addCapabilities
in class AbstractFileSystem
capabilities
- collections of Capabilities, can be immutable.AbstractFileSystem.addCapabilities(Collection)
public void close()
AbstractFileSystem
close
in interface Closeable
close
in interface AutoCloseable
close
in interface VfsComponent
close
in class AbstractFileSystem
AbstractFileSystem.close()
protected FileObject createFile(AbstractFileName name) throws Exception
AbstractFileSystem
This method is called only if the requested file is not cached.
createFile
in class AbstractFileSystem
name
- name referencing the new file.Exception
- might throw an Exception, which is then wrapped in FileSystemException.AbstractFileSystem.createFile(AbstractFileName)
public FileObject resolveFile(FileName name) throws FileSystemException
resolveFile
in interface FileSystem
resolveFile
in class AbstractFileSystem
name
- The name of a file on the HdfsFileSystem.FileSystemException
- if an error occurred.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.