CommitInfoT - The type of commit message.public interface SinkCommitter<CommitInfoT> extends Serializable
SinkAggregatedCommitter first, as the current version of SinkAggregatedCommitter can
provide more consistent behavior.
See Also SinkAggregatedCommitter
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abort(List<CommitInfoT> commitInfos)
Abort the transaction, this method will be called (**Only** on Spark engine) when the commit
is failed.
|
List<CommitInfoT> |
commit(List<CommitInfoT> commitInfos)
Commit message to third party data receiver, The method need to achieve idempotency.
|
List<CommitInfoT> commit(List<CommitInfoT> commitInfos) throws IOException
commitInfos - The list of commit messageIOException - throw IOException when commit failed.void abort(List<CommitInfoT> commitInfos) throws IOException
commitInfos - The list of commit message, used to abort the commit.IOException - throw IOException when close failed.Copyright © 2024 The Apache Software Foundation. All rights reserved.