Class 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 Detail

      • CommittableSummary

        public CommittableSummary​(int subtaskId,
                                  int numberOfSubtasks,
                                  @Nullable
                                  Long checkpointId,
                                  int numberOfCommittables,
                                  int numberOfPendingCommittables,
                                  int numberOfFailedCommittables)
    • Method Detail

      • getNumberOfSubtasks

        public int getNumberOfSubtasks()
      • getCheckpointId

        public OptionalLong getCheckpointId()
        Description copied from interface: CommittableMessage
        Returns 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:
        getCheckpointId in interface CommittableMessage<CommT>
      • getNumberOfCommittables

        public int getNumberOfCommittables()
      • getNumberOfPendingCommittables

        public int getNumberOfPendingCommittables()
      • getNumberOfFailedCommittables

        public int getNumberOfFailedCommittables()