B+ tree lookup, insertion, splits and root growth
Implement the following agreed behavior through the shared engine interfaces.
Contract
| Field | Value |
|---|---|
| Specification | INDEX-002 |
| Module | index |
| Scope | Required implementation or delivery |
| Milestone | M2, due 2026-12-20 |
| Owner role | Storage / search — sjr24 |
| Implementation | Planned; scaffold only |
| Contract review | Team review required before implementation |
Interface
BPlusTree.find/insert; begin(lower_bound)
These are proposed C++ design contracts, not an already implemented API. Shared types and ownership define the intended module boundaries.
Dependencies
- INDEX-001: Integer/composite key encoding and comparator
- STORE-002: Bounded buffer pool, pinning and dirty eviction
Acceptance checklist
- Persist internal/leaf nodes through the buffer pool
- Split leaves/internal nodes, propagate separators and change root correctly
- Exercise duplicates and shuffled insertions beyond multiple tree levels
Verification
Completion rule
Link this spec and its GitLab issue in an MR into develop. Include relevant Linux evidence, obtain the other teammate’s review, merge, delete the feature branch, and close the issue. A page describes intended behavior; the GitLab issue and merged code determine completion.