Class ExpireSnapshots.Builder
java.lang.Object
org.apache.iceberg.flink.maintenance.api.MaintenanceTaskBuilder<ExpireSnapshots.Builder>
org.apache.iceberg.flink.maintenance.api.ExpireSnapshots.Builder
- Enclosing class:
- ExpireSnapshots
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteBatchSize
(int newDeleteBatchSize) Size of the batch used to deleting the files.maxSnapshotAge
(Duration newMaxSnapshotAge) The snapshots older than this age will be removed.planningWorkerPoolSize
(int newPlanningWorkerPoolSize) The worker pool size used to calculate the files to delete.retainLast
(int newNumSnapshots) The minimum number ofSnapshot
s to retain.Methods inherited from class org.apache.iceberg.flink.maintenance.api.MaintenanceTaskBuilder
index, operatorName, parallelism, parallelism, scheduleOnCommitCount, scheduleOnDataFileCount, scheduleOnDataFileSize, scheduleOnEqDeleteFileCount, scheduleOnEqDeleteRecordCount, scheduleOnInterval, scheduleOnPosDeleteFileCount, scheduleOnPosDeleteRecordCount, slotSharingGroup, slotSharingGroup, tableLoader, tableName, taskName, uidSuffix, uidSuffix
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxSnapshotAge
The snapshots older than this age will be removed.- Parameters:
newMaxSnapshotAge
- of the snapshots to be removed
-
retainLast
The minimum number ofSnapshot
s to retain. For more details description seeExpireSnapshots.retainLast(int)
.- Parameters:
newNumSnapshots
- number of snapshots to retain
-
planningWorkerPoolSize
The worker pool size used to calculate the files to delete. If not set, the shared worker pool is used.- Parameters:
newPlanningWorkerPoolSize
- for planning files to delete
-
deleteBatchSize
Size of the batch used to deleting the files.- Parameters:
newDeleteBatchSize
- used for deleting
-