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 Details

    • CommittableSummary

      public CommittableSummary(int subtaskId, int numberOfSubtasks, long checkpointId, int numberOfCommittables, int numberOfFailedCommittables)
    • CommittableSummary

      @Deprecated public CommittableSummary(int subtaskId, int numberOfSubtasks, long checkpointId, int numberOfCommittables, int numberOfPendingCommittables, int numberOfFailedCommittables)
      Deprecated.
  • Method Details

    • getSubtaskId

      public int getSubtaskId()
      Description copied from interface: CommittableMessage
      The subtask that created this committable.
      Specified by:
      getSubtaskId in interface CommittableMessage<CommT>
    • getNumberOfSubtasks

      public int getNumberOfSubtasks()
    • getCheckpointIdOrEOI

      public long getCheckpointIdOrEOI()
      Description copied from interface: CommittableMessage
      Returns the checkpoint id or EOI if this message belong to the final checkpoint or the batch commit.
      Specified by:
      getCheckpointIdOrEOI in interface CommittableMessage<CommT>
    • getNumberOfCommittables

      public int getNumberOfCommittables()
    • getNumberOfPendingCommittables

      @Deprecated public int getNumberOfPendingCommittables()
      Deprecated.
    • getNumberOfFailedCommittables

      public int getNumberOfFailedCommittables()
    • map

      public <NewCommT> CommittableSummary<NewCommT> map()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object