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.
|
PositionReader |
openPositionRead(AlluxioURI path,
OpenFilePOptions options)
Opens a file for position reading.
|
PositionReader |
openPositionRead(URIStatus status,
OpenFilePOptions options)
Opens a file for reading.
|
checkAccess, close, createDirectory, createFile, delete, exists, free, getBlockLocations, getBlockLocations, getDoraCacheFileSystem, getJobProgress, getMountTable, getStatus, getUfsBaseFileSystem, getUnderlyingFileSystem, isClosed, iterateStatus, listStatus, listStatusPartial, loadMetadata, mount, needsSync, persist, rename, reverseResolve, setAcl, setAttribute, stopJob, 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, openPositionRead, 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
public PositionReader openPositionRead(AlluxioURI path, OpenFilePOptions options) throws FileDoesNotExistException
FileSystem
openPositionRead
in interface FileSystem
openPositionRead
in class DelegatingFileSystem
path
- the file to read fromoptions
- options to associate with this operationPositionReader
for the given pathFileDoesNotExistException
public PositionReader openPositionRead(URIStatus status, OpenFilePOptions options)
FileSystem
openPositionRead
in interface FileSystem
openPositionRead
in class DelegatingFileSystem
status
- status of the file to read fromoptions
- options to associate with this operationPositionReader
for the given pathCopyright © 2023. All Rights Reserved.