@Internal public class FileCommitter extends Object implements org.apache.flink.api.connector.sink2.Committer<FileSinkCommittable>
FileSink.
This committer is responsible for taking staged part-files, i.e. part-files in "pending"
state, created by the FileWriter
and commit them, or put them in "finished" state and ready to be consumed by downstream
applications or systems.
| 构造器和说明 |
|---|
FileCommitter(org.apache.flink.streaming.api.functions.sink.filesystem.BucketWriter<?,?> bucketWriter) |
public FileCommitter(org.apache.flink.streaming.api.functions.sink.filesystem.BucketWriter<?,?> bucketWriter)
public void commit(Collection<org.apache.flink.api.connector.sink2.Committer.CommitRequest<FileSinkCommittable>> requests) throws IOException, InterruptedException
commit 在接口中 org.apache.flink.api.connector.sink2.Committer<FileSinkCommittable>IOExceptionInterruptedExceptionpublic void close()
throws Exception
close 在接口中 AutoCloseableExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.