public final class DeltaHistoryManager
extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
getActiveCommitAtTimestamp(Engine engine,
Path logPath,
long timestamp)
Returns the latest recreatable commit that happened at or before
timestamp. |
static long |
getEarliestRecreatableCommit(Engine engine,
Path logPath)
Gets the earliest commit that we can recreate.
|
public static long getActiveCommitAtTimestamp(Engine engine, Path logPath, long timestamp) throws TableNotFoundException
timestamp. If the
provided timestamp is after the timestamp of the latest version of the table throws an
exception. If the provided timestamp is before the timestamp of the earliest version of the
table throws an exception.engine - instance of Engine to uselogPath - the _delta_log path of the tabletimestamp - the timestamp find the version for in milliseconds since the unix epochTableNotFoundException - when there is no Delta table at the given pathpublic static long getEarliestRecreatableCommit(Engine engine, Path logPath) throws TableNotFoundException
TableNotFoundException