Class 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 Detail

      • OSSCommitter

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

      • 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