Expand description
R-tree checkpoint/restore for durable persistence.
Follows the same pattern as the vector engine’s HNSW checkpoint: serialize all entries to bytes (MessagePack) → write to storage → restore via bulk_load on cold start.
Storage key scheme (in redb under Namespace::Spatial):
{collection}\x00{field}\x00rtree→ serialized R-tree entries{collection}\x00{field}\x00meta→ SpatialIndexMeta
Structs§
- RTree
Snapshot - Serialized R-tree snapshot (legacy MessagePack).
- Spatial
Index Meta - Metadata for a persisted spatial index.
Enums§
- RTree
Checkpoint Error - Errors during R-tree checkpoint operations.
- Spatial
Index Type - Type of spatial index.
Functions§
- deserialize_
meta - Deserialize index metadata from bytes.
- meta_
storage_ key - Build the storage key for spatial index metadata.
- rtree_
storage_ key - Build the storage key for an R-tree checkpoint.
- serialize_
meta - Serialize index metadata to bytes.