Class CommittableWithLineage<CommT>
java.lang.Object
org.apache.flink.streaming.api.connector.sink2.CommittableWithLineage<CommT>
- All Implemented Interfaces:
CommittableMessage<CommT>
@Experimental
public class CommittableWithLineage<CommT>
extends Object
implements CommittableMessage<CommT>
Provides metadata. The exposed exchange type between
CommittingSinkWriter and Committer.-
Field Summary
Fields inherited from interface org.apache.flink.streaming.api.connector.sink2.CommittableMessage
EOI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongReturns the checkpoint id or EOI if this message belong to the final checkpoint or the batch commit.intThe subtask that created this committable.inthashCode()<NewCommT> CommittableWithLineage<NewCommT>toString()withSubtaskId(int subtaskId) Creates a shallow copy with the given subtaskId.
-
Constructor Details
-
CommittableWithLineage
-
-
Method Details
-
getCommittable
-
getSubtaskId
public int getSubtaskId()Description copied from interface:CommittableMessageThe subtask that created this committable.- Specified by:
getSubtaskIdin interfaceCommittableMessage<CommT>
-
getCheckpointIdOrEOI
public long getCheckpointIdOrEOI()Description copied from interface:CommittableMessageReturns the checkpoint id or EOI if this message belong to the final checkpoint or the batch commit.- Specified by:
getCheckpointIdOrEOIin interfaceCommittableMessage<CommT>
-
map
-
withSubtaskId
Creates a shallow copy with the given subtaskId. -
toString
-
equals
-
hashCode
public int hashCode()
-