public class LocalOrphanFilesClean extends OrphanFilesClean
OrphanFilesClean, it will use thread pool to execute deletion.
Note that, this class will be used when the orphan clean mode is local, else orphan clean will use distributed one. See `FlinkOrphanFilesClean` and `SparkOrphanFilesClean`.
OrphanFilesClean.FileCleanerfileIO, location, LOG, olderThanMillis, partitionKeysNum, READ_FILE_RETRY_INTERVAL, READ_FILE_RETRY_NUM, table| Constructor and Description |
|---|
LocalOrphanFilesClean(FileStoreTable table) |
LocalOrphanFilesClean(FileStoreTable table,
long olderThanMillis) |
LocalOrphanFilesClean(FileStoreTable table,
long olderThanMillis,
boolean dryRun) |
| Modifier and Type | Method and Description |
|---|---|
CleanOrphanFilesResult |
clean() |
static List<LocalOrphanFilesClean> |
createOrphanFilesCleans(Catalog catalog,
String databaseName,
String tableName,
long olderThanMillis,
Integer parallelism,
boolean dryRun) |
static CleanOrphanFilesResult |
executeDatabaseOrphanFiles(Catalog catalog,
String databaseName,
String tableName,
long olderThanMillis,
Integer parallelism,
boolean dryRun) |
cleanBranchSnapshotDir, cleanFile, cleanSnapshotDir, collectWithoutDataFile, collectWithoutDataFileWithManifestFlag, listPaimonFileDirs, listPaimonFileDirs, oldEnough, olderThanMillis, retryReadingFiles, safelyGetAllSnapshots, tryBestListingDirs, tryCleanDataDirectory, tryDeleteEmptyDirectory, validBranchespublic LocalOrphanFilesClean(FileStoreTable table)
public LocalOrphanFilesClean(FileStoreTable table, long olderThanMillis)
public LocalOrphanFilesClean(FileStoreTable table, long olderThanMillis, boolean dryRun)
public CleanOrphanFilesResult clean() throws IOException, ExecutionException, InterruptedException
public static List<LocalOrphanFilesClean> createOrphanFilesCleans(Catalog catalog, String databaseName, @Nullable String tableName, long olderThanMillis, @Nullable Integer parallelism, boolean dryRun) throws Catalog.DatabaseNotExistException, Catalog.TableNotExistException
public static CleanOrphanFilesResult executeDatabaseOrphanFiles(Catalog catalog, String databaseName, @Nullable String tableName, long olderThanMillis, @Nullable Integer parallelism, boolean dryRun) throws Catalog.DatabaseNotExistException, Catalog.TableNotExistException
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.