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)longgetCheckpointId()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.-
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
-
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>
-
getCheckpointId
public long getCheckpointId()
- Specified by:
getCheckpointIdin 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.
-
-