Class SnapshotImpl

Object
io.delta.kernel.internal.SnapshotImpl
All Implemented Interfaces:
Snapshot

public class SnapshotImpl extends Object implements Snapshot
Implementation of Snapshot.
  • Constructor Details

  • Method Details

    • getVersion

      public long getVersion(Engine engine)
      Description copied from interface: Snapshot
      Get the version of this snapshot in the table.
      Specified by:
      getVersion in interface Snapshot
      Parameters:
      engine - Engine instance to use in Delta Kernel.
      Returns:
      version of this snapshot in the Delta table
    • getSchema

      public StructType getSchema(Engine engine)
      Description copied from interface: Snapshot
      Get the schema of the table at this snapshot.
      Specified by:
      getSchema in interface Snapshot
      Parameters:
      engine - Engine instance to use in Delta Kernel.
      Returns:
      Schema of the Delta table at this snapshot.
    • getScanBuilder

      public ScanBuilder getScanBuilder(Engine engine)
      Description copied from interface: Snapshot
      Create a scan builder to construct a Scan to read data from this snapshot.
      Specified by:
      getScanBuilder in interface Snapshot
      Parameters:
      engine - Engine instance to use in Delta Kernel.
      Returns:
      an instance of ScanBuilder
    • getMetadata

      public Metadata getMetadata()
    • getProtocol

      public Protocol getProtocol()
    • getCreateCheckpointIterator

      public CreateCheckpointIterator getCreateCheckpointIterator(Engine engine)
    • getLatestTransactionVersion

      public Optional<Long> getLatestTransactionVersion(Engine engine, String applicationId)
      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

      public LogSegment getLogSegment()
    • getLogPath

      public Path getLogPath()
    • getDataPath

      public Path getDataPath()