public class RenamingSnapshotCommit extends Object implements SnapshotCommit
SnapshotCommit using file renaming to commit.
Note that when the file system is local or HDFS, rename is atomic. But if the file system is object storage, we need additional lock protection.
| Modifier and Type | Class and Description |
|---|---|
static class |
RenamingSnapshotCommit.Factory
Factory to create
RenamingSnapshotCommit. |
| Constructor and Description |
|---|
RenamingSnapshotCommit(SnapshotManager snapshotManager,
Lock lock) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
commit(Snapshot snapshot,
String branch,
List<PartitionStatistics> statistics) |
public RenamingSnapshotCommit(SnapshotManager snapshotManager, Lock lock)
public boolean commit(Snapshot snapshot, String branch, List<PartitionStatistics> statistics) throws Exception
commit in interface SnapshotCommitExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.