@Experimental public class CommittableWithLineage<CommT> extends Object implements CommittableMessage<CommT>
CommittingSinkWriter and Committer.EOI| Constructor and Description |
|---|
CommittableWithLineage(CommT committable,
long checkpointId,
int subtaskId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getCheckpointIdOrEOI()
Returns the checkpoint id or EOI if this message belong to the final checkpoint or the batch
commit.
|
CommT |
getCommittable() |
int |
getSubtaskId()
The subtask that created this committable.
|
int |
hashCode() |
<NewCommT> CommittableWithLineage<NewCommT> |
map(Function<CommT,NewCommT> mapper) |
String |
toString() |
CommittableWithLineage<CommT> |
withSubtaskId(int subtaskId)
Creates a shallow copy with the given subtaskId.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCheckpointIdpublic CommittableWithLineage(CommT committable, long checkpointId, int subtaskId)
public CommT getCommittable()
public int getSubtaskId()
CommittableMessagegetSubtaskId in interface CommittableMessage<CommT>public long getCheckpointIdOrEOI()
CommittableMessagegetCheckpointIdOrEOI in interface CommittableMessage<CommT>public <NewCommT> CommittableWithLineage<NewCommT> map(Function<CommT,NewCommT> mapper)
public CommittableWithLineage<CommT> withSubtaskId(int subtaskId)
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.