public class HoodieHadoopStorage extends HoodieStorage
HoodieStorage using Hadoop's FileSystemLOG, storageConf| Constructor and Description |
|---|
HoodieHadoopStorage(org.apache.hadoop.fs.FileSystem fs) |
HoodieHadoopStorage(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf) |
HoodieHadoopStorage(StoragePath path,
StorageConfiguration<?> conf) |
HoodieHadoopStorage(StoragePath path,
StorageConfiguration<?> conf,
boolean enableRetry,
long maxRetryIntervalMs,
int maxRetryNumbers,
long initialRetryIntervalMs,
String retryExceptions,
ConsistencyGuard consistencyGuard) |
HoodieHadoopStorage(String path,
org.apache.hadoop.conf.Configuration conf) |
HoodieHadoopStorage(String path,
StorageConfiguration<?> conf) |
createImmutableFileInPath, getConf, needCreateTempFile, openSeekablepublic HoodieHadoopStorage(StoragePath path, StorageConfiguration<?> conf)
public HoodieHadoopStorage(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
public HoodieHadoopStorage(String path, org.apache.hadoop.conf.Configuration conf)
public HoodieHadoopStorage(String path, StorageConfiguration<?> conf)
public HoodieHadoopStorage(StoragePath path, StorageConfiguration<?> conf, boolean enableRetry, long maxRetryIntervalMs, int maxRetryNumbers, long initialRetryIntervalMs, String retryExceptions, ConsistencyGuard consistencyGuard)
public HoodieHadoopStorage(org.apache.hadoop.fs.FileSystem fs)
public HoodieStorage newInstance(StoragePath path, StorageConfiguration<?> storageConf)
newInstance in class HoodieStoragepublic String getScheme()
getScheme in class HoodieStoragepublic URI getUri()
getUri in class HoodieStoragepublic int getDefaultBlockSize(StoragePath path)
getDefaultBlockSize in class HoodieStoragepublic OutputStream create(StoragePath path, boolean overwrite) throws IOException
create in class HoodieStorageIOExceptionpublic OutputStream create(StoragePath path, boolean overwrite, Integer bufferSize, Short replication, Long sizeThreshold) throws IOException
create in class HoodieStorageIOExceptionpublic int getDefaultBufferSize()
getDefaultBufferSize in class HoodieStoragepublic short getDefaultReplication(StoragePath path)
getDefaultReplication in class HoodieStoragepublic InputStream open(StoragePath path) throws IOException
open in class HoodieStorageIOExceptionpublic SeekableDataInputStream openSeekable(StoragePath path, int bufferSize, boolean wrapStream) throws IOException
openSeekable in class HoodieStorageIOExceptionpublic OutputStream append(StoragePath path) throws IOException
append in class HoodieStorageIOExceptionpublic boolean exists(StoragePath path) throws IOException
exists in class HoodieStorageIOExceptionpublic StoragePathInfo getPathInfo(StoragePath path) throws IOException
getPathInfo in class HoodieStorageIOExceptionpublic boolean createDirectory(StoragePath path) throws IOException
createDirectory in class HoodieStorageIOExceptionpublic List<StoragePathInfo> listDirectEntries(StoragePath path) throws IOException
listDirectEntries in class HoodieStorageIOExceptionpublic List<StoragePathInfo> listFiles(StoragePath path) throws IOException
listFiles in class HoodieStorageIOExceptionpublic List<StoragePathInfo> listDirectEntries(List<StoragePath> pathList) throws IOException
listDirectEntries in class HoodieStorageIOExceptionpublic List<StoragePathInfo> listDirectEntries(StoragePath path, StoragePathFilter filter) throws IOException
listDirectEntries in class HoodieStorageIOExceptionpublic List<StoragePathInfo> globEntries(StoragePath pathPattern) throws IOException
globEntries in class HoodieStorageIOExceptionpublic List<StoragePathInfo> globEntries(StoragePath pathPattern, StoragePathFilter filter) throws IOException
globEntries in class HoodieStorageIOExceptionpublic boolean rename(StoragePath oldPath, StoragePath newPath) throws IOException
rename in class HoodieStorageIOExceptionpublic boolean deleteDirectory(StoragePath path) throws IOException
deleteDirectory in class HoodieStorageIOExceptionpublic boolean deleteFile(StoragePath path) throws IOException
deleteFile in class HoodieStorageIOExceptionpublic Object getFileSystem()
getFileSystem in class HoodieStoragepublic HoodieStorage getRawStorage()
getRawStorage in class HoodieStoragepublic OutputStream create(StoragePath path) throws IOException
create in class HoodieStorageIOExceptionpublic boolean createNewFile(StoragePath path) throws IOException
createNewFile in class HoodieStorageIOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.