Expand description
Waratah routing layer: Murmur3 consistent hashing and pattern → partition selection.
Given an EncodedTriplePattern, chooses a PartitionAxis, an
waratah_storage::IndexPermutation, and a physical NodeId on that
axis’s virtual-node ring. Compute nodes keep a local RoutingTable
(NodeId → localhost:port for the local-dev MVP).
See project_plan.md → “Partitioning & Routing Layer (The Where)”.
Structs§
- Cluster
Config - Addresses of the five MVP processes: S, P, O, string-registry, compute.
- Compute
Spec - One compute coordinator in the static membership list.
- Encoded
Triple Pattern - Ground or partially-bound encoded triple/quad pattern.
- Hash
Ring - Sorted Murmur3 ring of virtual nodes.
- NodeId
- Identifier of a physical partition node in the routing table.
- Registry
Node Id - Identifier of a string-registry process. MVP clusters run node
0only. - Route
- Pattern routing result: axis, index permutation, and physical node.
- Routed
Node - Physical node on a hexastore ring or the registry table.
- Router
- Murmur3 ring router with a static address table (local-dev MVP).
- Routing
Snapshot - Dump of Murmur3 hexastore rings plus the registry address table.
- Routing
Table - Maps physical partition node ids to listen addresses.
Enums§
- Encoded
Term - Encoded RDF term for storage keys and wire transfer.
- Partition
Axis - Hexastore partition axis managed by a consensus master node.
- Router
Error - Errors produced by pattern routing and table lookup.
Constants§
- DEFAULT_
ADMIN_ URL - Default advertised Waratah HTTP (
/waratah) base URL for local_dev. - DEFAULT_
COMPUTE_ ID - Default compute id when TOML omits
[[computes]]. - DEFAULT_
RDF4J_ URL - Default advertised RDF4J base URL for local_dev.
Functions§
- hash_
term - Murmur3-32 of an encoded term’s Oxigraph wire bytes.
- murmur3_
32 - Murmur3-32 over arbitrary bytes (seed
0). - routing_
term - Bound term used as the routing key for
axis. - select_
axis - Axis half of
select_target. - select_
target - Select partition axis and preferred index permutation for
pattern.