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) |
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
IOException
public void commitLongLivedChangelogLatestHint(long snapshotId) throws IOException
IOException
public void commitLongLivedChangelogEarliestHint(long snapshotId) throws IOException
IOException
public Changelog tryGetChangelog(long snapshotId) throws FileNotFoundException
FileNotFoundException
public Iterator<Changelog> changelogs() throws IOException
IOException
public List<Changelog> safelyGetAllChangelogs() throws IOException
IOException
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.