Class InMemoryMagicCommitTracker


public class InMemoryMagicCommitTracker extends MagicCommitTracker
InMemoryMagicCommitTracker stores the commit data in memory. The commit data and related data stores are flushed out from the memory when the task is committed or aborted.
  • Constructor Details

  • Method Details

    • aboutToComplete

      public boolean aboutToComplete(String uploadId, List<software.amazon.awssdk.services.s3.model.CompletedPart> parts, long bytesWritten, org.apache.hadoop.fs.statistics.IOStatistics iostatistics) throws IOException
      Description copied from class: MagicCommitTracker
      Complete operation: generate the final commit data, put it.
      Specified by:
      aboutToComplete in class MagicCommitTracker
      Parameters:
      uploadId - Upload ID
      parts - list of parts
      bytesWritten - bytes written
      iostatistics - nullable IO statistics
      Returns:
      false, indicating that the commit must fail.
      Throws:
      IOException - any IO problem.
    • toString

      public String toString()
      Overrides:
      toString in class MagicCommitTracker
    • getTaskAttemptIdToMpuMetadata

      public static Map<String,List<SinglePendingCommit>> getTaskAttemptIdToMpuMetadata()
    • getPathToBytesWritten

      public static Map<org.apache.hadoop.fs.Path,Long> getPathToBytesWritten()
    • getTaskAttemptIdToPath

      public static Map<String,List<org.apache.hadoop.fs.Path>> getTaskAttemptIdToPath()