Interface TwoPhaseCommittingSink<InputT,​CommT>

  • Type Parameters:
    InputT - The type of the sink's input
    CommT - The type of the committables.
    All Superinterfaces:
    Serializable, Sink<InputT>, SupportsCommitter<CommT>

    @PublicEvolving
    @Deprecated
    public interface TwoPhaseCommittingSink<InputT,​CommT>
    extends Sink<InputT>, SupportsCommitter<CommT>
    Deprecated.
    Please implement Sink SupportsCommitter instead.
    A Sink for exactly-once semantics using a two-phase commit protocol. The Sink consists of a SinkWriter that performs the precommits and a Committer that actually commits the data. To facilitate the separation the SinkWriter creates committables on checkpoint or end of input and the sends it to the Committer.

    The TwoPhaseCommittingSink needs to be serializable. All configuration should be validated eagerly. The respective sink writers and committers are transient and will only be created in the subtasks on the taskmanagers.