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 |
getRollbackRequestForAppend(HoodieInstant instantToRollback,
String markerFilePath) |
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 getRollbackRequestForAppend(HoodieInstant instantToRollback, String markerFilePath) throws IOException
IOExceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.