Package io.delta.kernel.internal
Class SnapshotImpl
Object
io.delta.kernel.internal.SnapshotImpl
- All Implemented Interfaces:
Snapshot
Implementation of
Snapshot.-
Constructor Summary
ConstructorsConstructorDescriptionSnapshotImpl(Path dataPath, LogSegment logSegment, LogReplay logReplay, Protocol protocol, Metadata metadata) -
Method Summary
Modifier and TypeMethodDescriptiongetCreateCheckpointIterator(Engine engine) getLatestTransactionVersion(Engine engine, String applicationId) Get the latest transaction version for given applicationId.getScanBuilder(Engine engine) Create a scan builder to construct aScanto read data from this snapshot.Get the schema of the table at this snapshot.longgetVersion(Engine engine) Get the version of this snapshot in the table.
-
Constructor Details
-
SnapshotImpl
public SnapshotImpl(Path dataPath, LogSegment logSegment, LogReplay logReplay, Protocol protocol, Metadata metadata)
-
-
Method Details
-
getVersion
Description copied from interface:SnapshotGet the version of this snapshot in the table.- Specified by:
getVersionin interfaceSnapshot- Parameters:
engine-Engineinstance to use in Delta Kernel.- Returns:
- version of this snapshot in the Delta table
-
getSchema
Description copied from interface:SnapshotGet the schema of the table at this snapshot. -
getScanBuilder
Description copied from interface:SnapshotCreate a scan builder to construct aScanto read data from this snapshot.- Specified by:
getScanBuilderin interfaceSnapshot- Parameters:
engine-Engineinstance to use in Delta Kernel.- Returns:
- an instance of
ScanBuilder
-
getMetadata
-
getProtocol
-
getCreateCheckpointIterator
-
getLatestTransactionVersion
Get the latest transaction version for given applicationId. This information comes from the transactions identifiers stored in Delta transaction log. This API is not a public API. For now keep this internal to enable Flink upgrade to use Kernel.- Parameters:
applicationId- Identifier of the application that put transaction identifiers in Delta transaction log- Returns:
- Last transaction version or
Optional.empty()if no transaction identifier exists for this application.
-
getLogSegment
-
getLogPath
-
getDataPath
-