public class RollbackUtils extends Object
| Constructor and Description |
|---|
RollbackUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<ListingBasedRollbackRequest> |
generateRollbackRequestsByListingCOW(HoodieEngineContext engineContext,
String basePath)
Generate all rollback requests that needs rolling back this action without actually performing rollback for COW table type.
|
static List<ListingBasedRollbackRequest> |
generateRollbackRequestsUsingFileListingMOR(HoodieInstant instantToRollback,
HoodieTable table,
HoodieEngineContext context)
Generate all rollback requests that we need to perform for rolling back this action without actually performing rolling back for MOR table type.
|
static HoodieRollbackPlan |
getRollbackPlan(HoodieTableMetaClient metaClient,
HoodieInstant rollbackInstant)
Get Latest version of Rollback plan corresponding to a clean instant.
|
public static HoodieRollbackPlan getRollbackPlan(HoodieTableMetaClient metaClient, HoodieInstant rollbackInstant) throws IOException
metaClient - Hoodie Table Meta ClientrollbackInstant - Instant referring to rollback actionIOExceptionpublic static List<ListingBasedRollbackRequest> generateRollbackRequestsByListingCOW(HoodieEngineContext engineContext, String basePath)
engineContext - instance of HoodieEngineContext to use.basePath - base path of interest.List of ListingBasedRollbackRequests thus collected.public static List<ListingBasedRollbackRequest> generateRollbackRequestsUsingFileListingMOR(HoodieInstant instantToRollback, HoodieTable table, HoodieEngineContext context) throws IOException
instantToRollback - Instant to Rollbacktable - instance of HoodieTable to use.context - instance of HoodieEngineContext to use.IOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.