Skip to content

yggdrasil.io.delta.log

log

Delta transaction-log parser.

Immutable log files (commit JSONs, checkpoints, sidecars) are read through the two-tier byte cache in :mod:yggdrasil.io.delta._cache (small RAM LRU + disk under ~/.cache); the mutable _last_checkpoint pointer and the directory listing are read fresh. Above all this, the parsed :class:~yggdrasil.io.delta.snapshot.Snapshot is cached on the (location-keyed singleton) DeltaFolder and advances incrementally off a fresh listing, so the log files are (re)read only when the listing actually changes.

DeltaLog

DeltaLog(table_root: 'Path')

commits_after

commits_after(base_version: int) -> 'Tuple[Path, ...]'

Commit-JSON paths with version > base_version, ascending.

Drives an incremental snapshot advance: apply just these commits on top of a cached snapshot, without re-reading the checkpoint or the prior commits.