IN - The data class by sink accept. Only support SeaTunnelRow at now.StateT - The state should be saved when job execute, this class should implement interface
Serializable.CommitInfoT - The commit message class return by SinkWriter.prepareCommit(), then
SinkCommitter or SinkAggregatedCommitter and handle it, this class should
implement interface Serializable.AggregatedCommitInfoT - The aggregated commit message class, combine by CommitInfoT. SinkAggregatedCommitter handle it, this class should implement
interface Serializable.public interface SeaTunnelSink<IN,StateT,CommitInfoT,AggregatedCommitInfoT> extends Serializable, PluginIdentifierInterface, SeaTunnelPluginLifeCycle, SeaTunnelJobAware
getPluginNamepreparesetJobContext@Deprecated default void setTypeInfo(SeaTunnelRowType seaTunnelRowType)
FactoryseaTunnelRowType - The row type info of sink.@Deprecated default SeaTunnelDataType<IN> getConsumedType()
FactorySinkWriter<IN,CommitInfoT,StateT> createWriter(SinkWriter.Context context) throws IOException
SinkWritercontext - The sink contextIOException - throws IOException when createWriter failed.default SinkWriter<IN,CommitInfoT,StateT> restoreWriter(SinkWriter.Context context, List<StateT> states) throws IOException
IOExceptiondefault Optional<Serializer<StateT>> getWriterStateSerializer()
StateT serializer. So that StateT can be transferred across processesStateTdefault Optional<SinkCommitter<CommitInfoT>> createCommitter() throws IOException
SinkCommitterIOException - throws IOException when createCommitter failed.default Optional<Serializer<CommitInfoT>> getCommitInfoSerializer()
CommitInfoT serializer. So that CommitInfoT can be transferred across
processesCommitInfoTdefault Optional<SinkAggregatedCommitter<CommitInfoT,AggregatedCommitInfoT>> createAggregatedCommitter() throws IOException
SinkAggregatedCommitterIOException - throws IOException when createAggregatedCommitter failed.default Optional<Serializer<AggregatedCommitInfoT>> getAggregatedCommitInfoSerializer()
AggregatedCommitInfoT serializer. So that AggregatedCommitInfoT can be
transferred across processesAggregatedCommitInfoTCopyright © 2024 The Apache Software Foundation. All rights reserved.