Class CommittableSummary<CommT>
- java.lang.Object
-
- org.apache.flink.streaming.api.connector.sink2.CommittableSummary<CommT>
-
- Type Parameters:
CommT- type of the committable
- All Implemented Interfaces:
CommittableMessage<CommT>
@Experimental public class CommittableSummary<CommT> extends Object implements CommittableMessage<CommT>
This class tracks the information about committables belonging to one checkpoint coming from one subtask.It is sent to down-stream consumers to depict the progress of the committing process.
-
-
Constructor Summary
Constructors Constructor Description CommittableSummary(int subtaskId, int numberOfSubtasks, Long checkpointId, int numberOfCommittables, int numberOfPendingCommittables, int numberOfFailedCommittables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OptionalLonggetCheckpointId()Returns the checkpoint id or empty if the message does not belong to a checkpoint.intgetNumberOfCommittables()intgetNumberOfFailedCommittables()intgetNumberOfPendingCommittables()intgetNumberOfSubtasks()intgetSubtaskId()The subtask that created this committable.
-
-
-
Method Detail
-
getSubtaskId
public int getSubtaskId()
Description copied from interface:CommittableMessageThe subtask that created this committable.- Specified by:
getSubtaskIdin interfaceCommittableMessage<CommT>
-
getNumberOfSubtasks
public int getNumberOfSubtasks()
-
getCheckpointId
public OptionalLong getCheckpointId()
Description copied from interface:CommittableMessageReturns the checkpoint id or empty if the message does not belong to a checkpoint. In that case, the committable was created at the end of input (e.g., in batch mode).- Specified by:
getCheckpointIdin interfaceCommittableMessage<CommT>
-
getNumberOfCommittables
public int getNumberOfCommittables()
-
getNumberOfPendingCommittables
public int getNumberOfPendingCommittables()
-
getNumberOfFailedCommittables
public int getNumberOfFailedCommittables()
-
-