@PublicAPIClass(maturity=EVOLVING) public abstract class HoodieIOFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HoodieStorage |
storage |
| Constructor and Description |
|---|
HoodieIOFactory(HoodieStorage storage) |
| Modifier and Type | Method and Description |
|---|---|
abstract FileFormatUtils |
getFileFormatUtils(HoodieFileFormat fileFormat) |
FileFormatUtils |
getFileFormatUtils(StoragePath path) |
static HoodieIOFactory |
getIOFactory(HoodieStorage storage) |
abstract HoodieFileReaderFactory |
getReaderFactory(HoodieRecord.HoodieRecordType recordType) |
abstract HoodieStorage |
getStorage(StoragePath storagePath) |
abstract HoodieStorage |
getStorage(StoragePath path,
boolean enableRetry,
long maxRetryIntervalMs,
int maxRetryNumbers,
long initialRetryIntervalMs,
String retryExceptions,
ConsistencyGuard consistencyGuard) |
abstract HoodieFileWriterFactory |
getWriterFactory(HoodieRecord.HoodieRecordType recordType) |
protected final HoodieStorage storage
public HoodieIOFactory(HoodieStorage storage)
public static HoodieIOFactory getIOFactory(HoodieStorage storage)
@PublicAPIMethod(maturity=EVOLVING) public abstract HoodieFileReaderFactory getReaderFactory(HoodieRecord.HoodieRecordType recordType)
recordType - HoodieRecord type.@PublicAPIMethod(maturity=EVOLVING) public abstract HoodieFileWriterFactory getWriterFactory(HoodieRecord.HoodieRecordType recordType)
recordType - HoodieRecord type.@PublicAPIMethod(maturity=EVOLVING) public abstract FileFormatUtils getFileFormatUtils(HoodieFileFormat fileFormat)
fileFormat - file format supported in Hudi.@PublicAPIMethod(maturity=EVOLVING) public abstract HoodieStorage getStorage(StoragePath storagePath)
storagePath - file path.HoodieStorage instance.@PublicAPIMethod(maturity=EVOLVING) public abstract HoodieStorage getStorage(StoragePath path, boolean enableRetry, long maxRetryIntervalMs, int maxRetryNumbers, long initialRetryIntervalMs, String retryExceptions, ConsistencyGuard consistencyGuard)
path - file path.enableRetry - whether to retry operations.maxRetryIntervalMs - maximum retry interval in milliseconds.maxRetryNumbers - maximum number of retries.initialRetryIntervalMs - initial delay before retry in milliseconds.retryExceptions - retry exception list.consistencyGuard - ConsistencyGuard instance.HoodieStorage instance with retry capability if applicable.public final FileFormatUtils getFileFormatUtils(StoragePath path)
path - file path.Copyright © 2024 The Apache Software Foundation. All rights reserved.