Class RewritePositionDeletesCommitManager.CommitService

java.lang.Object
org.apache.iceberg.actions.RewritePositionDeletesCommitManager.CommitService
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
RewritePositionDeletesCommitManager

public class RewritePositionDeletesCommitManager.CommitService extends Object
  • Field Details

    • TIMEOUT_IN_MS_DEFAULT

      public static final long TIMEOUT_IN_MS_DEFAULT
  • Method Details

    • commitOrClean

      protected void commitOrClean(Set<RewritePositionDeletesGroup> batch)
      Perform a commit operation on the table for the set of file groups, should cleanup failed file groups.
      Parameters:
      batch - set of file groups
    • abortFileGroup

      protected void abortFileGroup(RewritePositionDeletesGroup group)
      Clean 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
    • start

      public void start()
      Starts a single threaded executor service for handling file group commits.
    • offer

      public void offer(RewritePositionDeletesGroup group)
      Places a file group in the queue and commits a batch of file groups if BaseCommitService.rewritesPerCommit number of file groups are present in the queue.
      Parameters:
      group - file group to eventually be committed
    • results

      public List<RewritePositionDeletesGroup> results()
      Returns all File groups which have been committed
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • succeededCommits

      public int succeededCommits()