Interface TwoPhaseCommittingStatefulSink<InputT,​WriterStateT,​CommT>

  • Type Parameters:
    InputT - The type of the sink's input
    WriterStateT - The type of the sink writer's state
    CommT - The type of the committables.
    All Superinterfaces:
    Serializable, org.apache.flink.api.connector.sink2.Sink<InputT>, org.apache.flink.api.connector.sink2.SupportsCommitter<CommT>, org.apache.flink.api.connector.sink2.SupportsWriterState<InputT,​WriterStateT>
    All Known Implementing Classes:
    KafkaSink

    @Internal
    public interface TwoPhaseCommittingStatefulSink<InputT,​WriterStateT,​CommT>
    extends org.apache.flink.api.connector.sink2.SupportsCommitter<CommT>, org.apache.flink.api.connector.sink2.SupportsWriterState<InputT,​WriterStateT>, org.apache.flink.api.connector.sink2.Sink<InputT>
    A combination of SupportsCommitter and SupportsWriterState.

    The purpose of this interface is to be able to pass an interface rather than a KafkaSink implementation into the reducing sink which simplifies unit testing.