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

NameDescription
OsmStore Editable, process-local OSM semantic store.

Structs

NameDescription
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

NameDescription
StoreElementState Lifecycle state retained by the editable store.
StoreError Structured store failure category.

Aliases

NameTypeDescription
StoreMetadataView MetadataView v0.1 compatibility aliases for leaf semantic values.
StoreRelationMemberView RelationMemberView
StoreTagView TagView
StoreWayNodeRange StoreNodeRefRange v0.1 compatibility alias. Prefer StoreNodeRefRange.
StoreWayNodeView NodeRefView