Package org.apache.iceberg.actions
Class RewriteDataFilesCommitManager.CommitService
java.lang.Object
org.apache.iceberg.actions.RewriteDataFilesCommitManager.CommitService
- All Implemented Interfaces:
- Closeable,- AutoCloseable
- Enclosing class:
- RewriteDataFilesCommitManager
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidabortFileGroup(RewriteFileGroup group) Clean up a specified file set by removing any files created for that operation, should not throw any exceptionsvoidclose()protected voidcommitOrClean(Set<RewriteFileGroup> batch) Perform a commit operation on the table for the set of file groups, should cleanup failed file groups.voidoffer(RewriteFileGroup group) Places a file group in the queue and commits a batch of file groups ifBaseCommitService.rewritesPerCommitnumber of file groups are present in the queue.results()Returns all File groups which have been committedvoidstart()Starts a single threaded executor service for handling file group commits.int
- 
Field Details- 
TIMEOUT_IN_MS_DEFAULTpublic static final long TIMEOUT_IN_MS_DEFAULT
 
- 
- 
Method Details- 
commitOrCleanPerform a commit operation on the table for the set of file groups, should cleanup failed file groups.- Parameters:
- batch- set of file groups
 
- 
abortFileGroupClean up a specified file set by removing any files created for that operation, should not throw any exceptions- Parameters:
- group- group of files which are not yet committed
 
- 
startpublic void start()Starts a single threaded executor service for handling file group commits.
- 
offerPlaces a file group in the queue and commits a batch of file groups ifBaseCommitService.rewritesPerCommitnumber of file groups are present in the queue.- Parameters:
- group- file group to eventually be committed
 
- 
resultsReturns all File groups which have been committed
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
 
- 
succeededCommitspublic int succeededCommits()
 
-