@Experimental public interface WithPreCommitTopology<InputT,CommT> extends TwoPhaseCommittingSink<InputT,CommT>
SinkWriter
and before Committer
.
It is recommended to use immutable committables because mutating committables can have unexpected side-effects.
TwoPhaseCommittingSink.PrecommittingSinkWriter<InputT,CommT>
Sink.InitContext
Modifier and Type | Method and Description |
---|---|
DataStream<CommittableMessage<CommT>> |
addPreCommitTopology(DataStream<CommittableMessage<CommT>> committables)
Intercepts and modifies the committables sent on checkpoint or at end of input.
|
createCommitter, createWriter, getCommittableSerializer
DataStream<CommittableMessage<CommT>> addPreCommitTopology(DataStream<CommittableMessage<CommT>> committables)
CommittableMessage
s appropriately.committables
- the stream of committables.Committer
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.