Package org.apache.iceberg.actions
Class RewriteDataFilesCommitManager.CommitService
- java.lang.Object
- 
- org.apache.iceberg.actions.RewriteDataFilesCommitManager.CommitService
 
- 
- All Implemented Interfaces:
- java.io.Closeable,- java.lang.AutoCloseable
 - Enclosing class:
- RewriteDataFilesCommitManager
 
 public class RewriteDataFilesCommitManager.CommitService extends java.lang.Object implements java.io.Closeable
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidoffer(RewriteFileGroup group)Places a file group in the queue to be asynchronously committed either when the queue has enough elements to do a batch of sizerewritesPerCommitor the service has been closed.java.util.List<RewriteFileGroup>results()Returns all File groups which have been committedvoidstart()Starts a single threaded executor service for handling file group commits.
 
- 
- 
- 
Method Detail- 
startpublic void start() Starts a single threaded executor service for handling file group commits.
 - 
offerpublic void offer(RewriteFileGroup group) Places a file group in the queue to be asynchronously committed either when the queue has enough elements to do a batch of sizerewritesPerCommitor the service has been closed.- Parameters:
- group- file group to eventually be committed
 
 - 
resultspublic java.util.List<RewriteFileGroup> results() Returns all File groups which have been committed
 - 
closepublic void close() - Specified by:
- closein interface- java.lang.AutoCloseable
- Specified by:
- closein interface- java.io.Closeable
 
 
- 
 
-