Package org.apache.iceberg.actions
Class RewriteDataFilesCommitManager
- java.lang.Object
- 
- org.apache.iceberg.actions.RewriteDataFilesCommitManager
 
- 
 public class RewriteDataFilesCommitManager extends java.lang.ObjectFunctionality used by RewriteDataFile Actions from different platforms to handle commits.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classRewriteDataFilesCommitManager.CommitService
 - 
Constructor SummaryConstructors Constructor Description RewriteDataFilesCommitManager(Table table)RewriteDataFilesCommitManager(Table table, long startingSnapshotId)RewriteDataFilesCommitManager(Table table, long startingSnapshotId, boolean useStartingSequenceNumber)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabortFileGroup(RewriteFileGroup fileGroup)Clean up a specified file set by removing any files created for that operation, should not throw any exceptionsvoidcommitFileGroups(java.util.Set<RewriteFileGroup> fileGroups)Perform a commit operation on the table adding and removing files as required for this set of file groupsvoidcommitOrClean(java.util.Set<RewriteFileGroup> rewriteGroups)RewriteDataFilesCommitManager.CommitServiceservice(int rewritesPerCommit)An async service which allows for committing multiple file groups as their rewrites complete.
 
- 
- 
- 
Constructor Detail- 
RewriteDataFilesCommitManagerpublic RewriteDataFilesCommitManager(Table table) 
 - 
RewriteDataFilesCommitManagerpublic RewriteDataFilesCommitManager(Table table, long startingSnapshotId) 
 - 
RewriteDataFilesCommitManagerpublic RewriteDataFilesCommitManager(Table table, long startingSnapshotId, boolean useStartingSequenceNumber) 
 
- 
 - 
Method Detail- 
commitFileGroupspublic void commitFileGroups(java.util.Set<RewriteFileGroup> fileGroups) Perform a commit operation on the table adding and removing files as required for this set of file groups- Parameters:
- fileGroups- fileSets to commit
 
 - 
abortFileGrouppublic void abortFileGroup(RewriteFileGroup fileGroup) Clean up a specified file set by removing any files created for that operation, should not throw any exceptions- Parameters:
- fileGroup- group of files which has already been rewritten
 
 - 
commitOrCleanpublic void commitOrClean(java.util.Set<RewriteFileGroup> rewriteGroups) 
 - 
servicepublic RewriteDataFilesCommitManager.CommitService service(int rewritesPerCommit) An async service which allows for committing multiple file groups as their rewrites complete. The service also allows for partial-progress since commits can fail. Once the service has been closed no new file groups should not be offered.- Parameters:
- rewritesPerCommit- number of file groups to include in a commit
- Returns:
- the service for handling commits
 
 
- 
 
-