public interface CommitCallback extends AutoCloseable
ManifestCommittables is committed.
As a usage example, we can extract what partitions are created from the ManifestCommittables 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) |
closevoid call(List<ManifestEntry> committedEntries, Snapshot snapshot)
void retry(ManifestCommittable committable)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.