public class RewriteDataFilesCommitManager.CommitService
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
offer(RewriteFileGroup group)
Places a file group in the queue and commits a batch of file groups if
rewritesPerCommit number of file groups are present in the queue. |
java.util.List<RewriteFileGroup> |
results()
Returns all File groups which have been committed
|
void |
start()
Starts a single threaded executor service for handling file group commits.
|
public void start()
public void offer(RewriteFileGroup group)
rewritesPerCommit number of file groups are present in the queue.group - file group to eventually be committedpublic java.util.List<RewriteFileGroup> results()
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable