public class ChangelogManager extends Object implements Serializable
Changelog, providing utility methods related to paths and changelog hints.| Modifier and Type | Field and Description |
|---|---|
static String |
CHANGELOG_PREFIX |
| Constructor and Description |
|---|
ChangelogManager(FileIO fileIO,
Path tablePath,
String branchName) |
| Modifier and Type | Method and Description |
|---|---|
Changelog |
changelog(long snapshotId) |
Path |
changelogDirectory() |
Iterator<Changelog> |
changelogs() |
void |
commitChangelog(Changelog changelog,
long id) |
void |
commitLongLivedChangelogEarliestHint(long snapshotId) |
void |
commitLongLivedChangelogLatestHint(long snapshotId) |
void |
deleteEarliestHint() |
void |
deleteLatestHint() |
Long |
earliestLongLivedChangelogId() |
FileIO |
fileIO() |
Long |
latestLongLivedChangelogId() |
Changelog |
longLivedChangelog(long snapshotId) |
boolean |
longLivedChangelogExists(long snapshotId) |
Path |
longLivedChangelogPath(long snapshotId) |
List<Changelog> |
safelyGetAllChangelogs() |
Changelog |
tryGetChangelog(long snapshotId) |
public static final String CHANGELOG_PREFIX
public FileIO fileIO()
public boolean longLivedChangelogExists(long snapshotId)
public Changelog longLivedChangelog(long snapshotId)
public Changelog changelog(long snapshotId)
public Path longLivedChangelogPath(long snapshotId)
public Path changelogDirectory()
public void commitChangelog(Changelog changelog, long id) throws IOException
IOExceptionpublic void commitLongLivedChangelogLatestHint(long snapshotId)
throws IOException
IOExceptionpublic void commitLongLivedChangelogEarliestHint(long snapshotId)
throws IOException
IOExceptionpublic Changelog tryGetChangelog(long snapshotId) throws FileNotFoundException
FileNotFoundExceptionpublic Iterator<Changelog> changelogs() throws IOException
IOExceptionpublic List<Changelog> safelyGetAllChangelogs() throws IOException
IOExceptionpublic void deleteLatestHint()
throws IOException
IOExceptionpublic void deleteEarliestHint()
throws IOException
IOExceptionCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.