Class FileCommitter

java.lang.Object
org.apache.flink.connector.file.sink.committer.FileCommitter
All Implemented Interfaces:
AutoCloseable, org.apache.flink.api.connector.sink2.Committer<FileSinkCommittable>

@Internal public class FileCommitter extends Object implements org.apache.flink.api.connector.sink2.Committer<FileSinkCommittable>
Committer implementation for 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.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.flink.api.connector.sink2.Committer

    org.apache.flink.api.connector.sink2.Committer.CommitRequest<CommT extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
    FileCommitter(org.apache.flink.streaming.api.functions.sink.filesystem.BucketWriter<?,?> bucketWriter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    commit(Collection<org.apache.flink.api.connector.sink2.Committer.CommitRequest<FileSinkCommittable>> requests)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait