| Constructor and Description |
|---|
TableImpl(String tablePath) |
| 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. |
public static Table forPath(Engine engine, String path)
TableTableNotFoundException}TableNotFoundExceptionpublic String getPath(Engine engine)
TableTable instance.public Snapshot getLatestSnapshot(Engine engine) throws TableNotFoundException
TablegetLatestSnapshot in interface Tableengine - Engine instance to use in Delta Kernel.SnapshotTableNotFoundExceptionpublic Snapshot getSnapshotAsOfVersion(Engine engine, long versionId) throws TableNotFoundException
TableversionId.getSnapshotAsOfVersion in interface Tableengine - Engine instance to use in Delta Kernel.versionId - snapshot version to retrieveSnapshotTableNotFoundExceptionpublic Snapshot getSnapshotAsOfTimestamp(Engine engine, long millisSinceEpochUTC) throws TableNotFoundException
Tabletimestamp. This is the latest version of
the table that was committed before or at timestamp.
Specifically:
getSnapshotAsOfTimestamp in interface Tableengine - Engine instance to use in Delta Kernel.millisSinceEpochUTC - timestamp to fetch the snapshot for in milliseconds since the
unix epochSnapshotTableNotFoundExceptionpublic void checkpoint(Engine engine, long version) throws TableNotFoundException, CheckpointAlreadyExistsException, java.io.IOException
Tablecheckpoint in interface Tableengine - 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.public TransactionBuilder createTransactionBuilder(Engine engine, String engineInfo, Operation operation)
TableTransactionBuilder which can create a Transaction object to mutate
the table.createTransactionBuilder in interface Tableengine - 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.