1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//! ADR-0687: the changed-token set the live mutation sites report.
//!
//! A commit's changed tokens cannot be reconstructed from its write records
//! afterwards: a delete's redo op carries only the entity id, and the dying
//! labels, relationship type and property keys live in the version the
//! removal tombstones. Each mutation seam therefore reports its tokens while
//! it still holds the version, [`Graph::take_applied_token_changes`] drains
//! the accumulated set, and the facade's publication folds it into the
//! per-token last-changed table (`relate`'s `token_changes`).
//!
//! ## What a seam reports
//!
//! One rule, stated here and pointed at by every seam:
//!
//! - **A create reports its classify token** — a node's label ids, a
//! relationship's type id — and no property keys. A footprint holds the
//! classify token's row count, and the (classify, key) cardinality a seek
//! consult reads moves with that count, so the classify stamp covers the
//! keys a create installs.
//! - **A property edit reports the keys it touched** beside the entity's
//! classify tokens: a footprint's key ids are tokens of their own and
//! nothing else would stamp them.
//! - **A delete reports the dying version's classify tokens and its
//! property-key ids**: the tombstone is the last place the version's keys
//! exist, so no later walk could report them (ADR-0687 decision 7).
//!
//! The asymmetry is the point: a create's keys live on in the installed
//! version and the classify stamp covers them, while a delete's keys do not
//! survive it.
use *;
/// The interned tokens the writes applied since the last drain changed —
/// label ids, relationship-type ids and property-key ids, one dense
/// append-only id space (`crate::store::interner`) — plus whether a schema
/// op landed among them.