Skip to content

RecordChecksum

RecordChecksum is an abstraction of checksum "recorders" that can writeChecksumFile.

Contract

DeltaLog

deltaLog: DeltaLog

DeltaLog of the delta table to record the state of in a checksum file

SparkSession

spark: SparkSession

SparkSession (Spark SQL)

Implementations

CheckpointFileManager

writer: CheckpointFileManager

writer creates a CheckpointFileManager (for the logPath of this DeltaLog).

Lazy Value

writer is a Scala lazy value to guarantee that the code to initialize it is executed once only (when accessed for the first time) and the computed value never changes afterwards.

Learn more in the Scala Language Specification.

writeChecksumFile

writeChecksumFile(
  txnId: String,
  snapshot: Snapshot): Unit

writeChecksumFile...FIXME


writeChecksumFile is used when:

  • ChecksumHook is requested to run