Class FileCleanupTaskHandler

java.lang.Object
org.apache.polaris.service.task.FileCleanupTaskHandler
All Implemented Interfaces:
TaskHandler
Direct Known Subclasses:
BatchFileCleanupTaskHandler, ManifestFileCleanupTaskHandler

public abstract class FileCleanupTaskHandler extends Object implements TaskHandler
FileCleanupTaskHandler responsible for cleaning up files in table tasks. Handles retries for file deletions and skips files that are already missing. Subclasses must implement task-specific logic.
  • Field Details

  • Constructor Details

  • Method Details

    • canHandleTask

      public abstract boolean canHandleTask(org.apache.polaris.core.entity.TaskEntity task)
      Specified by:
      canHandleTask in interface TaskHandler
    • handleTask

      public abstract boolean handleTask(org.apache.polaris.core.entity.TaskEntity task, org.apache.polaris.core.context.CallContext callContext)
      Specified by:
      handleTask in interface TaskHandler
    • tryDelete

      public CompletableFuture<Void> tryDelete(org.apache.iceberg.catalog.TableIdentifier tableId, org.apache.iceberg.io.FileIO fileIO, String baseFile, String file, Throwable e, int attempt)