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 betweenTwoPhaseCommittingSink.PrecommittingSinkWriterandCommitter.
-
-
Constructor Summary
Constructors Constructor Description CommittableWithLineage(CommT committable, Long checkpointId, int subtaskId)
-
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.CommTgetCommittable()intgetSubtaskId()The subtask that created this committable.
-
-
-
Method Detail
-
getCommittable
public CommT getCommittable()
-
getSubtaskId
public int getSubtaskId()
Description copied from interface:CommittableMessageThe subtask that created this committable.- Specified by:
getSubtaskIdin interfaceCommittableMessage<CommT>
-
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>
-
-