MCPcopy Create free account
hub / github.com/brimdata/super / Patch

Struct Patch

db/commits/patch.go:18–23  ·  view source on GitHub ↗

A Patch represents a difference between a base snapshot and the patched snapshot. Patch implements View so either a patch or a base snapshot can be traversed in the same manner. Furthermore, patches can be easily chained to implement a sequence of patches to a base snapshot.

Source from the content-addressed store, hash-verified

16// can be traversed in the same manner. Furthermore, patches can be easily
17// chained to implement a sequence of patches to a base snapshot.
18type Patch struct {
19 base View
20 diff *Snapshot
21 deletedObjects []ksuid.KSUID
22 deletedVectors []ksuid.KSUID
23}
24
25var _ View = (*Patch)(nil)
26var _ Writeable = (*Patch)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected