Row encoding and table-page slot layout
Implement the following agreed behavior through the shared engine interfaces.
Contract
| Field | Value |
|---|---|
| Specification | STORE-003 |
| Module | storage |
| Scope | Required implementation or delivery |
| Milestone | M1, due 2026-12-06 |
| Owner role | Storage / search — sjr24 |
| Implementation | Planned; scaffold only |
| Contract review | Team review required before implementation |
Interface
RowCodec.encode/decode(Schema, Row); RecordPage
These are proposed C++ design contracts, not an already implemented API. Shared types and ownership define the intended module boundaries.
Dependencies
- CORE-001: Typed values, schemas and stable record identifiers
- STORE-001: Page file allocation, reads and writes
Acceptance checklist
- [ ] Round-trip INT/double/VARCHAR at length boundaries
- [ ] Persist slot bitmap or slot directory; preserve RID when rows change
- [ ] Detect page full and corrupt record length without reading outside page
Verification
Use focused module checks plus the integration scenario above; no separate course score is claimed.
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.