Class TableMaintenance.Builder
java.lang.Object
org.apache.iceberg.flink.maintenance.api.TableMaintenance.Builder
- Enclosing class:
- TableMaintenance
-
Method Summary
Modifier and TypeMethodDescriptionadd
(MaintenanceTaskBuilder<?> task) Adds a specific task with the given schedule.void
append()
Builds the task graph for the maintenance tasks.lockCheckDelay
(Duration newLockCheckDelay) Sets the delay for checking lock availability when a concurrent run is detected.maxReadBack
(int newMaxReadBack) Maximum number of snapshots checked when started with an embeddedMonitorSource
at the first time.parallelism
(int newParallelism) Sets the default parallelism of maintenance tasks.Limits the firing frequency for the task triggers.slotSharingGroup
(String newSlotSharingGroup) TheSingleOutputStreamOperator.slotSharingGroup(String)
for all the operators of the generated stream.The suffix used for the generatedTransformation
's uid.
-
Method Details
-
uidSuffix
The suffix used for the generatedTransformation
's uid.- Parameters:
newUidSuffix
- for the transformations
-
slotSharingGroup
TheSingleOutputStreamOperator.slotSharingGroup(String)
for all the operators of the generated stream. Could be used to separate the resources used by this task.- Parameters:
newSlotSharingGroup
- to be used for the operators
-
rateLimit
Limits the firing frequency for the task triggers.- Parameters:
newRateLimit
- firing frequency
-
lockCheckDelay
Sets the delay for checking lock availability when a concurrent run is detected.- Parameters:
newLockCheckDelay
- lock checking frequency
-
parallelism
Sets the default parallelism of maintenance tasks. Could be overwritten by theMaintenanceTaskBuilder.parallelism(int)
.- Parameters:
newParallelism
- task parallelism
-
maxReadBack
Maximum number of snapshots checked when started with an embeddedMonitorSource
at the first time. Only available when theTableMaintenance.forTable(StreamExecutionEnvironment, TableLoader, TriggerLockFactory)
is used.- Parameters:
newMaxReadBack
- snapshots to consider when initializing
-
add
Adds a specific task with the given schedule.- Parameters:
task
- to add
-
append
Builds the task graph for the maintenance tasks.- Throws:
IOException
-