| Constructor and Description |
|---|
SnapshotManager() |
| Modifier and Type | Method and Description |
|---|---|
Snapshot |
buildLatestSnapshot(TableClient tableClient,
Path logPath,
Path dataPath)
Construct the latest snapshot for given table.
|
protected java.util.Optional<java.util.List<FileStatus>> |
listDeltaAndCheckpointFiles(Path logPath,
TableClient tableClient,
long startVersion,
java.util.Optional<java.lang.Long> versionToLoad)
Returns the delta files and checkpoint files starting from the given `startVersion`.
|
static void |
verifyDeltaVersions(java.util.List<java.lang.Long> versions,
java.util.Optional<java.lang.Long> expectedStartVersion,
java.util.Optional<java.lang.Long> expectedEndVersion)
- Verify the versions are contiguous.
|
public Snapshot buildLatestSnapshot(TableClient tableClient, Path logPath, Path dataPath) throws TableNotFoundException
tableClient - Instance of TableClient to use.logPath - Where the Delta log files are located.dataPath - Where the Delta data files are located.TableNotFoundExceptionprotected final java.util.Optional<java.util.List<FileStatus>> listDeltaAndCheckpointFiles(Path logPath, TableClient tableClient, long startVersion, java.util.Optional<java.lang.Long> versionToLoad)
startVersion - the version to start. Inclusive.versionToLoad - the optional parameter to set the max version we should return.
Inclusive.public static void verifyDeltaVersions(java.util.List<java.lang.Long> versions,
java.util.Optional<java.lang.Long> expectedStartVersion,
java.util.Optional<java.lang.Long> expectedEndVersion)