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 to be asynchronously committed either when the queue has enough elements
to do a batch of size
rewritesPerCommit or the service has been closed. |
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 or the service has been closed.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