| Constructor and Description |
|---|
SnapshotImpl(Path logPath,
Path dataPath,
long version,
LogSegment logSegment,
TableClient tableClient,
long timestamp,
java.util.Optional<SnapshotHint> snapshotHint) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<Long> |
getLatestTransactionVersion(String applicationId)
Get the latest transaction version for given applicationId.
|
Metadata |
getMetadata() |
Protocol |
getProtocol() |
ScanBuilder |
getScanBuilder(TableClient tableClient)
Create a scan builder to construct a
Scan to read data from this snapshot. |
StructType |
getSchema(TableClient tableClient)
Get the schema of the table at this snapshot.
|
long |
getVersion(TableClient tableClient)
Get the version of this snapshot in the table.
|
public SnapshotImpl(Path logPath, Path dataPath, long version, LogSegment logSegment, TableClient tableClient, long timestamp, java.util.Optional<SnapshotHint> snapshotHint)
public long getVersion(TableClient tableClient)
SnapshotgetVersion in interface SnapshottableClient - TableClient instance to use in Delta Kernel.public StructType getSchema(TableClient tableClient)
SnapshotgetSchema in interface SnapshottableClient - TableClient instance to use in Delta Kernel.public ScanBuilder getScanBuilder(TableClient tableClient)
SnapshotScan to read data from this snapshot.getScanBuilder in interface SnapshottableClient - TableClient instance to use in Delta Kernel.ScanBuilderpublic Metadata getMetadata()
public Protocol getProtocol()
public java.util.Optional<Long> getLatestTransactionVersion(String applicationId)
applicationId - Identifier of the application that put transaction identifiers in
Delta transaction logOptional.empty() if no transaction identifier
exists for this application.