@Internal public class FileCommitter extends Object implements Committer<FileSinkCommittable>
This committer is responsible for taking staged part-files, i.e. part-files in "pending"
state, created by the
and commit them, or put them in "finished" state and ready to be consumed by downstream
applications or systems.
|Constructor and Description|
|Modifier and Type||Method and Description|
Commit the given list of
public FileCommitter(BucketWriter<?,?> bucketWriter)
public void commit(Collection<Committer.CommitRequest<FileSinkCommittable>> requests) throws IOException, InterruptedException
requests- A list of commit requests staged by the sink writer.
IOException- for reasons that may yield a complete restart of the job.
public void close() throws Exception
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.