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.
-
-
Field Summary
-
Fields inherited from interface org.apache.flink.streaming.api.connector.sink2.CommittableMessage
EOI
-
-
Constructor Summary
Constructors Constructor Description CommittableSummary(int subtaskId, int numberOfSubtasks, long checkpointId, int numberOfCommittables, int numberOfFailedCommittables)CommittableSummary(int subtaskId, int numberOfSubtasks, long checkpointId, int numberOfCommittables, int numberOfPendingCommittables, int numberOfFailedCommittables)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)longgetCheckpointId()intgetNumberOfCommittables()intgetNumberOfFailedCommittables()intgetNumberOfPendingCommittables()Deprecated.intgetNumberOfSubtasks()intgetSubtaskId()The subtask that created this committable.inthashCode()<NewCommT> CommittableSummary<NewCommT>map()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.flink.streaming.api.connector.sink2.CommittableMessage
getCheckpointIdOrEOI
-
-
-
-
Constructor Detail
-
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 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 long getCheckpointId()
- Specified by:
getCheckpointIdin interfaceCommittableMessage<CommT>
-
getNumberOfCommittables
public int getNumberOfCommittables()
-
getNumberOfPendingCommittables
@Deprecated public int getNumberOfPendingCommittables()
Deprecated.
-
getNumberOfFailedCommittables
public int getNumberOfFailedCommittables()
-
map
public <NewCommT> CommittableSummary<NewCommT> map()
-
-