@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.
| Constructor and Description |
|---|
FileCommitter(org.apache.flink.streaming.api.functions.sink.filesystem.BucketWriter<?,?> bucketWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commit(Collection<org.apache.flink.api.connector.sink2.Committer.CommitRequest<FileSinkCommittable>> requests) |
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 in interface org.apache.flink.api.connector.sink2.Committer<FileSinkCommittable>IOExceptionInterruptedExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.