rebuild

suspend fun rebuild(ref: AggregateRef)

Rebuilds the snapshot of ref from the log in each target of its type (a rebuild request): in place where the table is claimed at this node's revision; elsewhere marked stale, or written at this node's revision when there is none, for the node of the claimed revision to rewrite.


suspend fun rebuild(ref: AggregateRef, streams: List<EventStreamRecord>, state: CachedState)

Rebuilds the snapshot of ref as rebuild does, from streams, its whole log, already replayed as state: the access walk's, which read them to stamp them.