public final class RepairUtils extends Object
| Constructor and Description |
|---|
RepairUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
findInstantFilesToRemove(String instantToRepair,
List<String> baseAndLogFilesFromFs,
HoodieActiveTimeline activeTimeline,
HoodieArchivedTimeline archivedTimeline)
Finds the dangling files to remove for a given instant to repair.
|
static Option<Set<String>> |
getBaseAndLogFilePathsFromTimeline(HoodieTimeline timeline,
HoodieInstant instant)
Gets the base and log file paths written for a given instant from the timeline.
|
static Map<String,List<String>> |
tagInstantsOfBaseAndLogFiles(String basePath,
List<StoragePath> allPaths)
Tags the instant time of each base or log file from the input file paths.
|
public static Map<String,List<String>> tagInstantsOfBaseAndLogFiles(String basePath, List<StoragePath> allPaths)
public static Option<Set<String>> getBaseAndLogFilePathsFromTimeline(HoodieTimeline timeline, HoodieInstant instant) throws IOException
timeline - HoodieTimeline instance, can be active or archived timeline.instant - Instant for lookup.Option of Set of relative file paths to base path
if the instant action is supported; empty Option otherwise.IOException - if reading instant details fail.public static List<String> findInstantFilesToRemove(String instantToRepair, List<String> baseAndLogFilesFromFs, HoodieActiveTimeline activeTimeline, HoodieArchivedTimeline archivedTimeline)
instantToRepair - Instant timestamp to repair.baseAndLogFilesFromFs - A List of base and log files based on the file system.activeTimeline - HoodieActiveTimeline instance.archivedTimeline - HoodieArchivedTimeline instance.List of relative file paths to base path for removing.Copyright © 2024 The Apache Software Foundation. All rights reserved.