public class MarkerBasedRollbackStrategy<T,I,K,O> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
basePath |
protected HoodieWriteConfig |
config |
protected HoodieEngineContext |
context |
protected String |
instantTime |
protected HoodieTable<?,?,?,?> |
table |
| Constructor and Description |
|---|
MarkerBasedRollbackStrategy(HoodieTable<?,?,?,?> table,
HoodieEngineContext context,
HoodieWriteConfig config,
String instantTime) |
| Modifier and Type | Method and Description |
|---|---|
protected HoodieRollbackRequest |
createRollbackRequestForAppend(String fileId,
String relativePartitionPath,
StoragePath filePath,
HoodieInstant instantToRollback,
String filePathToRollback) |
protected HoodieRollbackRequest |
createRollbackRequestForCreateAndMerge(String fileId,
String partitionPath,
StoragePath filePath,
HoodieInstant instantToRollback) |
List<HoodieRollbackRequest> |
getRollbackRequests(HoodieInstant instantToRollback)
Fetch list of
HoodieRollbackRequests to be added to rollback plan. |
protected final HoodieTable<?,?,?,?> table
protected final transient HoodieEngineContext context
protected final HoodieWriteConfig config
protected final String basePath
protected final String instantTime
public MarkerBasedRollbackStrategy(HoodieTable<?,?,?,?> table, HoodieEngineContext context, HoodieWriteConfig config, String instantTime)
public List<HoodieRollbackRequest> getRollbackRequests(HoodieInstant instantToRollback)
HoodieRollbackRequests to be added to rollback plan.instantToRollback - instant to be rolled back.HoodieRollbackRequests to be added to rollback planprotected HoodieRollbackRequest createRollbackRequestForCreateAndMerge(String fileId, String partitionPath, StoragePath filePath, HoodieInstant instantToRollback)
protected HoodieRollbackRequest createRollbackRequestForAppend(String fileId, String relativePartitionPath, StoragePath filePath, HoodieInstant instantToRollback, String filePathToRollback)
Copyright © 2024 The Apache Software Foundation. All rights reserved.