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 betweenCommittingSinkWriterandCommitter.
-
-
Field Summary
-
Fields inherited from interface org.apache.flink.streaming.api.connector.sink2.CommittableMessage
EOI
-
-
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 booleanequals(Object o)longgetCheckpointIdOrEOI()Returns the checkpoint id or EOI if this message belong to the final checkpoint or the batch commit.CommTgetCommittable()intgetSubtaskId()The subtask that created this committable.inthashCode()<NewCommT> CommittableWithLineage<NewCommT>map(Function<CommT,NewCommT> mapper)StringtoString()CommittableWithLineage<CommT>withSubtaskId(int subtaskId)Creates a shallow copy with the given subtaskId.
-
-
-
Constructor Detail
-
CommittableWithLineage
public CommittableWithLineage(CommT committable, long checkpointId, int subtaskId)
-
-
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>
-
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
public <NewCommT> CommittableWithLineage<NewCommT> map(Function<CommT,NewCommT> mapper)
-
withSubtaskId
public CommittableWithLineage<CommT> withSubtaskId(int subtaskId)
Creates a shallow copy with the given subtaskId.
-
-