Interface WithPreCommitTopology<InputT,CommT>
-
- All Superinterfaces:
Serializable,org.apache.flink.api.connector.sink2.Sink<InputT>,org.apache.flink.api.connector.sink2.TwoPhaseCommittingSink<InputT,CommT>
@Experimental public interface WithPreCommitTopology<InputT,CommT> extends org.apache.flink.api.connector.sink2.TwoPhaseCommittingSink<InputT,CommT>Allows expert users to implement a custom topology afterSinkWriterand beforeCommitter.It is recommended to use immutable committables because mutating committables can have unexpected side-effects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataStream<CommittableMessage<CommT>>addPreCommitTopology(DataStream<CommittableMessage<CommT>> committables)Intercepts and modifies the committables sent on checkpoint or at end of input.
-
-
-
Method Detail
-
addPreCommitTopology
DataStream<CommittableMessage<CommT>> addPreCommitTopology(DataStream<CommittableMessage<CommT>> committables)
Intercepts and modifies the committables sent on checkpoint or at end of input. Implementers need to ensure to modify allCommittableMessages appropriately.- Parameters:
committables- the stream of committables.- Returns:
- the custom topology before
Committer.
-
-