public class TableCommitCoordinatorClientHandler
extends Object
CommitCoordinatorClientHandler that provides a more user-friendly API
for committing/ accessing commits to a specific table. This class takes care of passing the table
specific configuration to the underlying CommitCoordinatorClientHandler e.g. logPath /
coordinatedCommitsTableConf.| Constructor and Description |
|---|
TableCommitCoordinatorClientHandler(CommitCoordinatorClientHandler commitCoordinatorClientHandler,
String logPath,
java.util.Map<String,String> tableConf) |
| Modifier and Type | Method and Description |
|---|---|
void |
backfillToVersion(long version,
Long lastKnownBackfilledVersion) |
CommitResponse |
commit(long commitVersion,
CloseableIterator<Row> actions,
UpdatedActions updatedActions) |
GetCommitsResponse |
getCommits(Long startVersion,
Long endVersion) |
boolean |
semanticEquals(CommitCoordinatorClientHandler otherCommitCoordinatorClientHandler) |
boolean |
semanticEquals(TableCommitCoordinatorClientHandler otherCommitCoordinatorClient) |
public TableCommitCoordinatorClientHandler(CommitCoordinatorClientHandler commitCoordinatorClientHandler, String logPath, java.util.Map<String,String> tableConf)
public CommitResponse commit(long commitVersion, CloseableIterator<Row> actions, UpdatedActions updatedActions) throws CommitFailedException
CommitFailedExceptionpublic GetCommitsResponse getCommits(Long startVersion, Long endVersion)
public void backfillToVersion(long version,
Long lastKnownBackfilledVersion)
throws java.io.IOException
java.io.IOExceptionpublic boolean semanticEquals(CommitCoordinatorClientHandler otherCommitCoordinatorClientHandler)
public boolean semanticEquals(TableCommitCoordinatorClientHandler otherCommitCoordinatorClient)