Class OSSCommitter

java.lang.Object
org.apache.flink.fs.osshadoop.writer.OSSCommitter
All Implemented Interfaces:
org.apache.flink.core.fs.RecoverableFsDataOutputStream.Committer

public class OSSCommitter extends Object implements org.apache.flink.core.fs.RecoverableFsDataOutputStream.Committer
Data object to commit an OSS MultiPartUpload.
  • Constructor Details

    • OSSCommitter

      public OSSCommitter(OSSAccessor ossAccessor, String objectName, String uploadId, List<com.aliyun.oss.model.PartETag> partETags, long totalLength)
  • Method Details

    • commit

      public void commit() throws IOException
      Specified by:
      commit in interface org.apache.flink.core.fs.RecoverableFsDataOutputStream.Committer
      Throws:
      IOException
    • commitAfterRecovery

      public void commitAfterRecovery() throws IOException
      Specified by:
      commitAfterRecovery in interface org.apache.flink.core.fs.RecoverableFsDataOutputStream.Committer
      Throws:
      IOException
    • getRecoverable

      public org.apache.flink.core.fs.RecoverableWriter.CommitRecoverable getRecoverable()
      Specified by:
      getRecoverable in interface org.apache.flink.core.fs.RecoverableFsDataOutputStream.Committer