Interface StatefulSink<InputT,​WriterStateT>

  • Type Parameters:
    InputT - The type of the sink's input
    WriterStateT - The type of the sink writer's state
    All Superinterfaces:
    Serializable, Sink<InputT>

    @PublicEvolving
    public interface StatefulSink<InputT,​WriterStateT>
    extends Sink<InputT>
    A Sink with a stateful SinkWriter.

    The StatefulSink 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.