InputT - The type of the sink's inputWriterStateT - The type of the sink writer's stateCommT - The type of the committables.@Internal
public interface TwoPhaseCommittingStatefulSink<InputT,WriterStateT,CommT>
extends org.apache.flink.api.connector.sink2.TwoPhaseCommittingSink<InputT,CommT>, org.apache.flink.api.connector.sink2.StatefulSink<InputT,WriterStateT>
TwoPhaseCommittingSink and StatefulSink.
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.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
TwoPhaseCommittingStatefulSink.PrecommittingStatefulSinkWriter<InputT,WriterStateT,CommT>
A combination of
PrecommittingSinkWriter and StatefulSinkWriter. |
org.apache.flink.api.connector.sink2.TwoPhaseCommittingSink.PrecommittingSinkWriter<InputT,CommT>| Modifier and Type | Method and Description |
|---|---|
TwoPhaseCommittingStatefulSink.PrecommittingStatefulSinkWriter<InputT,WriterStateT,CommT> |
createWriter(org.apache.flink.api.connector.sink2.Sink.InitContext context) |
TwoPhaseCommittingStatefulSink.PrecommittingStatefulSinkWriter<InputT,WriterStateT,CommT> |
restoreWriter(org.apache.flink.api.connector.sink2.Sink.InitContext context,
Collection<WriterStateT> recoveredState) |
TwoPhaseCommittingStatefulSink.PrecommittingStatefulSinkWriter<InputT,WriterStateT,CommT> createWriter(org.apache.flink.api.connector.sink2.Sink.InitContext context) throws IOException
createWriter in interface org.apache.flink.api.connector.sink2.Sink<InputT>createWriter in interface org.apache.flink.api.connector.sink2.StatefulSink<InputT,WriterStateT>createWriter in interface org.apache.flink.api.connector.sink2.TwoPhaseCommittingSink<InputT,CommT>IOExceptionTwoPhaseCommittingStatefulSink.PrecommittingStatefulSinkWriter<InputT,WriterStateT,CommT> restoreWriter(org.apache.flink.api.connector.sink2.Sink.InitContext context, Collection<WriterStateT> recoveredState) throws IOException
restoreWriter in interface org.apache.flink.api.connector.sink2.StatefulSink<InputT,WriterStateT>IOExceptionCopyright © 2022–2024 The Apache Software Foundation. All rights reserved.