@Internal public class SinkV1Adapter.GlobalCommitterAdapter extends Object implements Committer<CommT>
Committer.CommitRequest<CommT>
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
commit(Collection<Committer.CommitRequest<CommT>> committables)
Commit the given list of
CommT . |
SimpleVersionedSerializer<GlobalCommT> |
getGlobalCommittableSerializer() |
GlobalCommitter<CommT,GlobalCommT> |
getGlobalCommitter() |
public void close() throws Exception
close
in interface AutoCloseable
Exception
public void commit(Collection<Committer.CommitRequest<CommT>> committables) throws IOException, InterruptedException
Committer
CommT
.commit
in interface Committer<CommT>
committables
- A list of commit requests staged by the sink writer.IOException
- for reasons that may yield a complete restart of the job.InterruptedException
public GlobalCommitter<CommT,GlobalCommT> getGlobalCommitter()
public SimpleVersionedSerializer<GlobalCommT> getGlobalCommittableSerializer()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.