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 Summary
Constructors Constructor Description OSSCommitter(OSSAccessor ossAccessor, String objectName, String uploadId, List<com.aliyun.oss.model.PartETag> partETags, long totalLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit()voidcommitAfterRecovery()org.apache.flink.core.fs.RecoverableWriter.CommitRecoverablegetRecoverable()
-
-
-
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:
commitin interfaceorg.apache.flink.core.fs.RecoverableFsDataOutputStream.Committer- Throws:
IOException
-
commitAfterRecovery
public void commitAfterRecovery() throws IOException- Specified by:
commitAfterRecoveryin interfaceorg.apache.flink.core.fs.RecoverableFsDataOutputStream.Committer- Throws:
IOException
-
getRecoverable
public org.apache.flink.core.fs.RecoverableWriter.CommitRecoverable getRecoverable()
- Specified by:
getRecoverablein interfaceorg.apache.flink.core.fs.RecoverableFsDataOutputStream.Committer
-
-