| Modifier and Type | Method and Description |
|---|---|
void |
checkpoint(Engine engine,
long version)
Checkpoint the table at given version.
|
TransactionBuilder |
createTransactionBuilder(Engine engine,
String engineInfo,
Operation operation)
Create a
TransactionBuilder which can create a Transaction object to mutate
the table. |
static Table |
forPath(Engine engine,
String path)
Instantiate a table object for the Delta Lake table at the given path.
|
Snapshot |
getLatestSnapshot(Engine engine)
Get the latest snapshot of the table.
|
String |
getPath(Engine engine)
The fully qualified path of this
Table instance. |
Snapshot |
getSnapshotAsOfTimestamp(Engine engine,
long millisSinceEpochUTC)
Get the snapshot of the table at the given
timestamp. |
Snapshot |
getSnapshotAsOfVersion(Engine engine,
long versionId)
Get the snapshot at the given
versionId. |
static Table forPath(Engine engine, String path)
TableNotFoundException}TableNotFoundExceptionString getPath(Engine engine)
Table instance.engine - Engine instance.Snapshot getLatestSnapshot(Engine engine) throws TableNotFoundException
engine - Engine instance to use in Delta Kernel.SnapshotTableNotFoundExceptionSnapshot getSnapshotAsOfVersion(Engine engine, long versionId) throws TableNotFoundException
versionId.engine - Engine instance to use in Delta Kernel.versionId - snapshot version to retrieveSnapshotKernelException - if the provided version is less than the first available version
or greater than the last available versionTableNotFoundExceptionSnapshot getSnapshotAsOfTimestamp(Engine engine, long millisSinceEpochUTC) throws TableNotFoundException
timestamp. This is the latest version of
the table that was committed before or at timestamp.
Specifically:
engine - Engine instance to use in Delta Kernel.millisSinceEpochUTC - timestamp to fetch the snapshot for in milliseconds since the
unix epochSnapshotKernelException - if the provided timestamp is before the earliest available version or
after the latest available versionTableNotFoundExceptionTransactionBuilder createTransactionBuilder(Engine engine, String engineInfo, Operation operation)
TransactionBuilder which can create a Transaction object to mutate
the table.engine - Engine instance to use.engineInfo - information about the engine that is making the updates.operation - metadata of operation that is being performed. E.g. "insert", "delete".TransactionBuilder instance to build the transaction.void checkpoint(Engine engine, long version) throws TableNotFoundException, CheckpointAlreadyExistsException, java.io.IOException
engine - Engine instance to use.version - Version to checkpoint.TableNotFoundException - if the table is not foundCheckpointAlreadyExistsException - if a checkpoint already exists at the given versionjava.io.IOException - for any I/O error.