Expand description
Path Trie for TOON Document Path Resolution (Task 4)
Implements O(|path|) path resolution for nested TOON documents, regardless of schema size.
§Performance Analysis
Traditional BTreeMap: O(d × log F) where d=depth, F=fields
Path Trie: O(d) where d=path depth
For path="users.profile.settings.theme" (d=4) with F=100 fields:
- BTreeMap: 4 × log(100) ≈ 26.6 comparisons
- PathTrie: 4 lookups = 4 hash lookups§Memory Model
Memory: O(N × avg_path_length) where N = total columns For 100 tables × 50 cols × 3 levels = 15,000 nodes × ~100 bytes = 1.5MB
Structs§
- Column
Group Affinity - Column group affinity for compression optimization
- Concurrent
Path Trie - Concurrent Path Trie with lock-free reads and epoch-based reclamation
- Concurrent
Trie Node - A node in the concurrent path trie using epoch-based reclamation
- Path
Trie - Path Trie for O(|path|) TOON path resolution
- Read
Guard - RAII guard for read operations Decrements reader count when dropped
- Trie
Node - A node in the path trie
Enums§
- Column
Type - Column type for physical storage optimization
Type Aliases§
- Column
Id - Column identifier (matches storage layer)