@Internal public class FileCommitter extends Object implements org.apache.flink.api.connector.sink.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.
| Constructor and Description |
|---|
FileCommitter(org.apache.flink.streaming.api.functions.sink.filesystem.BucketWriter<?,?> bucketWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<FileSinkCommittable> |
commit(List<FileSinkCommittable> committables) |
public FileCommitter(org.apache.flink.streaming.api.functions.sink.filesystem.BucketWriter<?,?> bucketWriter)
public List<FileSinkCommittable> commit(List<FileSinkCommittable> committables) throws IOException
commit in interface org.apache.flink.api.connector.sink.Committer<FileSinkCommittable>IOExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.