public interface CommitCallback extends AutoCloseable
ManifestCommittable
s is committed.
As a usage example, we can extract what partitions are created from the ManifestCommittable
s and add these partitions into Hive metastore.
NOTE: To guarantee that this callback is called, if a failure occurs right after the commit, this callback might be called multiple times. Please make sure that your implementation is idempotent. That is, your callback can be called multiple times and still have the desired effect.
Modifier and Type | Method and Description |
---|---|
void |
call(List<ManifestEntry> committedEntries,
Snapshot snapshot) |
void |
retry(ManifestCommittable committable) |
close
void call(List<ManifestEntry> committedEntries, Snapshot snapshot)
void retry(ManifestCommittable committable)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.