Package org.apache.polaris.service.task
Class TableCleanupTaskHandler
java.lang.Object
org.apache.polaris.service.task.TableCleanupTaskHandler
- All Implemented Interfaces:
TaskHandler
Table cleanup handler resolves the latest
TableMetadata file for a dropped table and
schedules a deletion task for each Snapshot found in the TableMetadata. Manifest
cleanup tasks are scheduled in a batch so tasks should be stored atomically.-
Constructor Summary
ConstructorsConstructorDescriptionTableCleanupTaskHandler(TaskExecutor taskExecutor, org.apache.polaris.core.persistence.MetaStoreManagerFactory metaStoreManagerFactory, TaskFileIOSupplier fileIOSupplier) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandleTask(org.apache.polaris.core.entity.TaskEntity task) booleanhandleTask(org.apache.polaris.core.entity.TaskEntity cleanupTask, org.apache.polaris.core.context.CallContext callContext)
-
Constructor Details
-
TableCleanupTaskHandler
public TableCleanupTaskHandler(TaskExecutor taskExecutor, org.apache.polaris.core.persistence.MetaStoreManagerFactory metaStoreManagerFactory, TaskFileIOSupplier fileIOSupplier)
-
-
Method Details
-
canHandleTask
public boolean canHandleTask(org.apache.polaris.core.entity.TaskEntity task) - Specified by:
canHandleTaskin interfaceTaskHandler
-
handleTask
public boolean handleTask(org.apache.polaris.core.entity.TaskEntity cleanupTask, org.apache.polaris.core.context.CallContext callContext) - Specified by:
handleTaskin interfaceTaskHandler
-