InputT
- The type of the sink's input@PublicEvolving public interface Sink<InputT> extends Serializable
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.
Modifier and Type | Interface and Description |
---|---|
static interface |
Sink.InitContext
The interface exposes some runtime info for creating a
SinkWriter . |
Modifier and Type | Method and Description |
---|---|
SinkWriter<InputT> |
createWriter(Sink.InitContext context)
Creates a
SinkWriter . |
SinkWriter<InputT> createWriter(Sink.InitContext context) throws IOException
SinkWriter
.context
- the runtime context.IOException
- for any failure during creation.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.