| Constructor and Description |
|---|
SnapshotImpl(Path dataPath,
LogSegment logSegment,
LogReplay logReplay,
Protocol protocol,
Metadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
CreateCheckpointIterator |
getCreateCheckpointIterator(Engine engine) |
Path |
getDataPath() |
java.util.Optional<Long> |
getLatestTransactionVersion(String applicationId)
Get the latest transaction version for given applicationId.
|
Path |
getLogPath() |
LogSegment |
getLogSegment() |
Metadata |
getMetadata() |
Protocol |
getProtocol() |
ScanBuilder |
getScanBuilder(Engine engine)
Create a scan builder to construct a
Scan to read data from this snapshot. |
StructType |
getSchema(Engine engine)
Get the schema of the table at this snapshot.
|
long |
getVersion(Engine engine)
Get the version of this snapshot in the table.
|
public SnapshotImpl(Path dataPath, LogSegment logSegment, LogReplay logReplay, Protocol protocol, Metadata metadata)
public long getVersion(Engine engine)
SnapshotgetVersion in interface Snapshotengine - Engine instance to use in Delta Kernel.public StructType getSchema(Engine engine)
Snapshotpublic ScanBuilder getScanBuilder(Engine engine)
SnapshotScan to read data from this snapshot.getScanBuilder in interface Snapshotengine - Engine instance to use in Delta Kernel.ScanBuilderpublic Metadata getMetadata()
public Protocol getProtocol()
public CreateCheckpointIterator getCreateCheckpointIterator(Engine engine)
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.public LogSegment getLogSegment()
public Path getLogPath()
public Path getDataPath()