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>, SupportsWriterState<InputT,​WriterStateT>

    @PublicEvolving
    @Deprecated
    public interface StatefulSink<InputT,​WriterStateT>
    extends Sink<InputT>, SupportsWriterState<InputT,​WriterStateT>
    Deprecated.
    Please implement Sink and SupportsWriterState instead.
    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.