Module osm.store.compact.store
Compact in-memory editable OSM store implementation.
The representation is deliberately data-oriented: fixed fields are stored in columns, variable children in append-only pools, repeated strings in one intern pool, and typed IDs in open-addressed indexes. Public callers see only OSM semantics, stable handles and borrowed semantic views.
Parent/reverse indexes are deliberately not exposed here; #63 owns their production implementation and mutation-coherence contract.
Date
2026-11-03
Classes
| Name | Description |
|---|---|
OsmStore
|
Editable, process-local OSM semantic store. |
Structs
| Name | Description |
|---|---|
OsmHandle
|
Stable logical identity for one store element. |
StoreCounts
|
Live and tombstone counts by element type. |
StoreMemoryUsage
|
Logical owned-byte accounting for the compact representation. |
StoreNodeRange
|
Deterministic live Node InputRange in slot/insertion order. |
StoreNodeRefRange
|
Borrowed ordered Way-node InputRange. |
StoreNodeView
|
Borrowed Node semantic view. Invalidated by structural store mutation. |
StoreParentRelationRange
|
Borrowed range of distinct live Relations that reference one typed OSM ID. |
StoreParentWayRange
|
Borrowed range of distinct live Ways that reference one Node ID. |
StoreRelationMemberRange
|
Borrowed ordered Relation-member InputRange. |
StoreRelationRange
|
Deterministic live Relation InputRange in slot/insertion order. |
StoreRelationView
|
Borrowed Relation semantic view. Invalidated by structural store mutation. |
StoreStatus
|
Status returned by fallible store operations. |
StoreTagRange
|
Borrowed ordered tag InputRange. |
StoreWayRange
|
Deterministic live Way InputRange in slot/insertion order. |
StoreWayView
|
Borrowed Way semantic view. Invalidated by structural store mutation. |
Enums
| Name | Description |
|---|---|
StoreElementState
|
Lifecycle state retained by the editable store. |
StoreError
|
Structured store failure category. |
Aliases
| Name | Type | Description |
|---|---|---|
StoreMetadataView
|
MetadataView
|
v0.1 compatibility aliases for leaf semantic values. |
StoreRelationMemberView
|
RelationMemberView
|
|
StoreTagView
|
TagView
|
|
StoreWayNodeRange
|
StoreNodeRefRange
|
v0.1 compatibility alias. Prefer StoreNodeRefRange. |
StoreWayNodeView
|
NodeRefView
|