CommitInfoT - The type of commit message.AggregatedCommitInfoT - The type of commit message after combine.public interface SinkAggregatedCommitter<CommitInfoT,AggregatedCommitInfoT> extends Serializable
commit(List). This class will execute in single thread.
See Also SinkCommitter
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abort(List<AggregatedCommitInfoT> aggregatedCommitInfo)
If
commit(List) failed, this method will be called (**Only** on Spark engine at
now). |
void |
close()
Close this resource.
|
AggregatedCommitInfoT |
combine(List<CommitInfoT> commitInfos)
The logic about how to combine commit message.
|
List<AggregatedCommitInfoT> |
commit(List<AggregatedCommitInfoT> aggregatedCommitInfo)
Commit message to third party data receiver, The method need to achieve idempotency.
|
default void |
init()
init sink aggregated committer
|
default List<AggregatedCommitInfoT> |
restoreCommit(List<AggregatedCommitInfoT> aggregatedCommitInfo)
Re-commit message to third party data receiver, The method need to achieve idempotency.
|
default void init()
default List<AggregatedCommitInfoT> restoreCommit(List<AggregatedCommitInfoT> aggregatedCommitInfo) throws IOException
IOExceptionList<AggregatedCommitInfoT> commit(List<AggregatedCommitInfoT> aggregatedCommitInfo) throws IOException
aggregatedCommitInfo - The list of combine commit message.IOException - throw IOException when commit failed.AggregatedCommitInfoT combine(List<CommitInfoT> commitInfos)
commitInfos - The list of commit message.void abort(List<AggregatedCommitInfoT> aggregatedCommitInfo) throws Exception
commit(List) failed, this method will be called (**Only** on Spark engine at
now).aggregatedCommitInfo - The list of combine commit message.Exception - throw Exception when abort failed.void close()
throws IOException
IOException - throw IOException when close failed.Copyright © 2024 The Apache Software Foundation. All rights reserved.