public class LocalCacheFileSystem extends DelegatingFileSystem
FileSystem.Factory
mDelegatedFileSystem
Constructor and Description |
---|
LocalCacheFileSystem(CacheManager cacheManage,
FileSystem fs,
AlluxioConfiguration conf) |
Modifier and Type | Method and Description |
---|---|
AlluxioConfiguration |
getConf() |
FileInStream |
openFile(AlluxioURI path,
OpenFilePOptions options)
Opens a file for reading.
|
FileInStream |
openFile(URIStatus status,
OpenFilePOptions options)
Opens a file for reading.
|
checkAccess, close, createDirectory, createFile, delete, exists, free, getBlockLocations, getBlockLocations, getJobProgress, getMountTable, getStatus, getSyncPathList, getUnderlyingFileSystem, isClosed, iterateStatus, listStatus, listStatusPartial, loadMetadata, mount, needsSync, persist, rename, reverseResolve, setAcl, setAttribute, startSync, stopJob, stopSync, submitJob, unmount, updateMount
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDirectory, createFile, delete, exists, free, getMountTable, getStatus, iterateStatus, listStatus, loadMetadata, mount, openFile, persist, rename, setAcl, setAttribute, unmount
public LocalCacheFileSystem(CacheManager cacheManage, FileSystem fs, AlluxioConfiguration conf)
cacheManage
- cache managerfs
- a FileSystem instance to query on local cache missconf
- the configuration, only respected for the first callpublic AlluxioConfiguration getConf()
getConf
in interface FileSystem
getConf
in class DelegatingFileSystem
public FileInStream openFile(AlluxioURI path, OpenFilePOptions options) throws IOException, AlluxioException
FileSystem
openFile
in interface FileSystem
openFile
in class DelegatingFileSystem
path
- the file to read fromoptions
- options to associate with this operationFileInStream
for the given pathFileDoesNotExistException
- when path does not existOpenDirectoryException
- when path is a directoryFileIncompleteException
- when path is a file and is not completed yetIOException
AlluxioException
public FileInStream openFile(URIStatus status, OpenFilePOptions options) throws IOException, AlluxioException
FileSystem
openFile
in interface FileSystem
openFile
in class DelegatingFileSystem
status
- status of the file to read fromoptions
- options to associate with this operationFileInStream
for the given pathFileDoesNotExistException
- when path does not existOpenDirectoryException
- when path is a directoryFileIncompleteException
- when path is a file and is not completed yetIOException
AlluxioException
Copyright © 2023. All Rights Reserved.