public class OSSFileIO extends HadoopCompliantFileIO
FileIO.fsMap| Constructor and Description |
|---|
OSSFileIO() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Override this method to empty, many FileIO implementation classes rely on static variables
and do not have the ability to close them.
|
void |
configure(CatalogContext context)
Configure by
CatalogContext. |
protected org.apache.hadoop.fs.aliyun.oss.AliyunOSSFileSystem |
createFileSystem(org.apache.hadoop.fs.Path path) |
FileStatus |
getFileStatus(Path path)
Return a file status object that represents the path.
|
boolean |
isObjectStore() |
RemoteIterator<FileStatus> |
listFilesIterative(Path path,
boolean recursive)
List the statuses of the files iteratively in the given path if the path is a directory.
|
FileStatus[] |
listStatus(Path path)
List the statuses of the files/directories in the given path if the path is a directory.
|
delete, exists, getFileSystem, mkdirs, newInputStream, newOutputStream, path, renameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckOrMkdirs, copyFile, copyFiles, deleteDirectoryQuietly, deleteFilesQuietly, deleteQuietly, discoverLoaders, get, getFileSize, isDir, listDirectories, listFiles, overwriteFileUtf8, overwriteHintFile, readFileUtf8, readOverwrittenFileUtf8, tryToWriteAtomic, writeFilepublic boolean isObjectStore()
public void configure(CatalogContext context)
FileIOCatalogContext.protected org.apache.hadoop.fs.aliyun.oss.AliyunOSSFileSystem createFileSystem(org.apache.hadoop.fs.Path path)
createFileSystem in class HadoopCompliantFileIOpublic void close()
FileIOpublic FileStatus getFileStatus(Path path) throws IOException
FileIOgetFileStatus in interface FileIOgetFileStatus in class HadoopCompliantFileIOpath - The path we want information fromFileNotFoundException - when the path does not exist; IOException see specific
implementationIOExceptionpublic FileStatus[] listStatus(Path path) throws IOException
FileIOlistStatus in interface FileIOlistStatus in class HadoopCompliantFileIOpath - given pathIOExceptionpublic RemoteIterator<FileStatus> listFilesIterative(Path path, boolean recursive) throws IOException
FileIOlistFilesIterative in interface FileIOlistFilesIterative in class HadoopCompliantFileIOpath - given pathrecursive - if set to true will recursively list files in subdirectories,
otherwise only files in the current directory will be listedRemoteIterator over FileStatus of the files in the given pathIOExceptionCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.