public class RewritePositionDeletesCommitManager
extends java.lang.Object
RewritePositionDeleteFiles
from different platforms to handle
commits.Modifier and Type | Class and Description |
---|---|
class |
RewritePositionDeletesCommitManager.CommitService |
Constructor and Description |
---|
RewritePositionDeletesCommitManager(Table table) |
RewritePositionDeletesCommitManager(Table table,
java.util.Map<java.lang.String,java.lang.String> snapshotProperties) |
Modifier and Type | Method and Description |
---|---|
void |
abort(RewritePositionDeletesGroup fileGroup)
Clean up a specified file set by removing any files created for that operation, should not
throw any exceptions.
|
void |
commit(java.util.Set<RewritePositionDeletesGroup> fileGroups)
Perform a commit operation on the table adding and removing files as required for this set of
file groups.
|
void |
commitOrClean(java.util.Set<RewritePositionDeletesGroup> rewriteGroups) |
RewritePositionDeletesCommitManager.CommitService |
service(int rewritesPerCommit)
An async service which allows for committing multiple file groups as their rewrites complete.
|
public RewritePositionDeletesCommitManager(Table table)
public RewritePositionDeletesCommitManager(Table table, java.util.Map<java.lang.String,java.lang.String> snapshotProperties)
public void commit(java.util.Set<RewritePositionDeletesGroup> fileGroups)
fileGroups
- file groups to commitpublic void abort(RewritePositionDeletesGroup fileGroup)
fileGroup
- group of files which has already been rewrittenpublic void commitOrClean(java.util.Set<RewritePositionDeletesGroup> rewriteGroups)
public RewritePositionDeletesCommitManager.CommitService service(int rewritesPerCommit)
rewritesPerCommit
- number of file groups to include in a commit