CommT
- type of the committable@Internal public interface CheckpointCommittableManager<CommT>
CheckpointCommittableManager
collects committables for one checkpoint across
potentially multiple upstream subtasks.
While it collects committables from multiple upstream subtasks, it belongs to exactly one committer subtask.
Each upstream subtask of this particular checkpoint is represented by a SubtaskCommittableManager
.
Modifier and Type | Method and Description |
---|---|
Collection<CommittableWithLineage<CommT>> |
commit(Committer<CommT> committer)
Commits all due committables if all respective committables of the specific subtask and
checkpoint have been received.
|
long |
getCheckpointId()
Returns the checkpoint id in which the committables were created.
|
int |
getNumberOfSubtasks()
Returns the number of upstream subtasks belonging to the checkpoint.
|
CommittableSummary<CommT> |
getSummary(int emittingSubtaskId,
int emittingNumberOfSubtasks)
Returns a summary of the current commit progress for the emitting subtask identified by the
parameters.
|
long getCheckpointId()
int getNumberOfSubtasks()
CommittableSummary<CommT> getSummary(int emittingSubtaskId, int emittingNumberOfSubtasks)
Collection<CommittableWithLineage<CommT>> commit(Committer<CommT> committer) throws IOException, InterruptedException
committer
- used to commit to the external systemIOException
InterruptedException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.