Interface Sink<InputT>

  • Type Parameters:
    InputT - The type of the sink's input
    All Superinterfaces:
    Serializable
    All Known Subinterfaces:
    StatefulSink<InputT,​WriterStateT>, TwoPhaseCommittingSink<InputT,​CommT>

    @PublicEvolving
    public interface Sink<InputT>
    extends Serializable
    Base interface for developing a sink. A basic Sink is a stateless sink that can flush data on checkpoint to achieve at-least-once consistency. Sinks with additional requirements should implement StatefulSink or TwoPhaseCommittingSink.

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