Expand description
Waratah wire contract (waratah.v1).
Three services, owned by different processes of the local-dev cluster:
| Service | RPCs | Served by |
|---|---|---|
Hexastore | data-plane plus Health / Describe | S / P / O partitions (ListNamedGraphs / AddNamedGraph are S-axis only; DomainScan / AxisHeadScan accept only permutations owned by the serving axis; others return UNIMPLEMENTED) |
StringRegistry | RegisterStrings, ResolveStrings, FlushMemtables, CompactRange, Health, Describe | string-registry process |
Compute | Health, Describe (identity + advertised HTTP URLs + routing table; no storage probes) | compute coordinator |
Hexastore payloads carry encoded terms only (waratah_storage::StrHash
references and inline small terms); raw strings appear solely on the registry
service, which compute calls for final output bindings.
Re-exports§
pub use pb::compute_client::ComputeClient;pub use pb::compute_server::Compute;pub use pb::compute_server::ComputeServer;pub use pb::hexastore_client::HexastoreClient;pub use pb::hexastore_server::Hexastore;pub use pb::hexastore_server::HexastoreServer;pub use pb::string_registry_client::StringRegistryClient;pub use pb::string_registry_server::StringRegistry;pub use pb::string_registry_server::StringRegistryServer;
Modules§
- pb
- Generated
waratah.v1messages, clients, and server traits.
Structs§
- Quad
Version - One decoded hexastore record: quad plus its Phase 2b version metadata.
Enums§
- Pattern
Slot - Which pattern slot a broadcast filter applies to.
- Proto
Error - Failure decoding a
waratah.v1message into storage-layer types.
Constants§
- GRPC_
MAX_ MESSAGE_ SIZE - Maximum size of one gRPC message, pinned explicitly on every client
endpoint and server service in the cluster (tonic’s default is the same
4 MiB today; setting it keeps the ceiling deterministic across tonic
upgrades). Unary responses that could exceed it — an unlimited
ScanPatternover a large prefix — must useScanPatternStreaminstead; every streaming batch stays comfortably below it. - OMIT_
GRAPH omitted_slotsbit for the graph slot.- OMIT_
NONE - No slot omitted.
- OMIT_
OBJECT omitted_slotsbit for the object slot.- OMIT_
PREDICATE omitted_slotsbit for the predicate slot.- OMIT_
SUBJECT omitted_slotsbit for the subject slot.- SCAN_
STREAM_ FRAME_ ROWS - Rows per streaming frame of a
ScanPatternStreamresponse. This is the wire-chunking unit of a scan (the partition packs a walk into frames of this many rows and pauses on channel backpressure) — it is not a compute-side demand: clients request a row count per RPC and the response arrives asceil(n / SCAN_STREAM_FRAME_ROWS)frames, reassembled by the client-side drainer. Compute consumers therefore never see frame boundaries; the constant matters here on the wire and as the transport floor for compute-side page demands. - WORST_
CASE_ QUAD_ WIRE - Worst-case serialized bytes one row contributes to a
ScanPatternResponse, dividingGRPC_MAX_MESSAGE_SIZEinto the maximum row count a unary scan response may carry. Worked from the term-encoding invariant and proto framing, per row:
Functions§
- add_
named_ graph_ request - Build an
AddNamedGraphrequest (S-axis catalog; NamedNode only). - axis_
from_ proto - Map a wire axis value;
UNSPECIFIEDmeans “caller did not assert an axis”. - axis_
to_ proto - Map a partition axis onto its wire enum value.
- blocking_
join_ error - Map a
spawn_blockingjoin failure (handler panic or runtime shutdown) to atonic::Status. - count_
mode_ from_ proto - Map a wire domain-count mode;
ROWSis the zero default. - count_
mode_ to_ proto - Map a storage domain-count mode onto its wire enum value.
- insert_
request - Build an
InsertQuadsrequest asserting the targetaxis. - list_
named_ graphs_ request - Build a
ListNamedGraphsrequest (S-axis catalog; includes empty graphs). - op_
from_ proto - Map a wire operation value;
UNSPECIFIEDis rejected. - op_
to_ proto - Map a storage operation onto its wire enum value.
- pattern_
from_ proto - Decode a partially-bound pattern from the wire.
- pattern_
slot_ from_ proto - Map a wire pattern slot;
UNSPECIFIEDisNone. - pattern_
slot_ to_ proto - Encode a pattern slot for the wire.
- pattern_
to_ proto - Encode a partially-bound pattern for the wire.
- permutation_
from_ proto - Map a wire permutation value;
UNSPECIFIEDlets the partition choose. - permutation_
to_ proto - Map an index permutation onto its wire enum value.
- quad_
from_ proto - Decode a quad from the wire.
- quad_
from_ proto_ omitting - Decode a quad whose slots may have been omitted, reassembling them exactly.
- quad_
to_ proto - Encode a quad for the wire.
- quad_
version_ from_ proto - Decode a quad version from the wire.
- quad_
version_ to_ proto - Encode a versioned record for the wire.
- register_
request - Build a
RegisterStringsrequest from(hash, raw)pairs. - replace_
pair_ from_ proto - Decode one replace pair from the wire.
- replace_
pair_ to_ proto - Decode a versioned record from the wire. Encode one replace pair for the wire.
- resolve_
request - Build a
ResolveStringsrequest. - scan_
exhaustion_ from_ proto - Map a present wire scan-exhaustion verdict. Unknown NON-ZERO values
(a future enum addition this client does not know) read as
Limited— the safe “stopped at a demand boundary; resume or infer” reading, never a terminal claim. The zero placeholder is handled one layer up byscan_exhaustion_from_proto_opt, which maps it to absence per the wire contract. - scan_
exhaustion_ from_ proto_ opt - Map an optional wire verdict: unset — or an explicit
UNSPECIFIEDzero, the placeholder the wire contract says “reads as no verdict” — means no verdict was purchased and nothing is claimed. Without this filter, a zero from a future peer would collapse through the safe fallback intoSome(Limited), contradicting the contract and making “a purchasedLimited” indistinguishable from “nothing claimed”. - scan_
exhaustion_ to_ proto - Map a storage scan-exhaustion verdict onto its wire enum value.
- scan_
request - Build a
ScanPattern/CountPatternrequest. - scan_
request_ filtered - Build a
ScanPatternrequest with an optional broadcast filter set. - scan_
request_ page - Build a
ScanPatternrequest with an exclusivestart_aftercursor. - slot_
comparison_ from_ proto - Decode one slot comparison.
- slot_
comparison_ to_ proto - Encode one slot comparison for the wire.
- slot_
comparisons_ from_ proto - Decode a comparison list.
- slot_
comparisons_ to_ proto - Encode a comparison list for the wire.
- slot_
mask_ from_ wire - Validate an
omitted_slotsfield: only the four slot bits may be set. - str_
hash_ from_ bytes - Decode a 16-byte big-endian
StrHash. - str_
hash_ to_ bytes - Serialize a
StrHashas 16 big-endian bytes. - term_
from_ bytes - Decode exactly one encoded term; empty input is the default graph.
- term_
to_ bytes - Serialize one encoded term. The default graph serializes to zero bytes.
- text_
index_ doc_ from_ proto - Decode one text-index document from the wire.
- text_
index_ doc_ to_ proto - Encode one text-index document for the wire.
- with_
comparisons - Attach slot comparisons to a scan request (ANDed in list order).
- with_
omitted_ slots - Mark response slots the partition should leave empty.
- with_
verdict_ wanted - Set the consumer’s exhaustion-verdict declaration (see the
verdict_wantedfield onScanPatternRequest):trueonly when a full page would be followed by another request, so the walk should keep scanning past a full page to report an honest terminal verdict at exact limit boundaries. The proto default (false) stops the walk at the limit’th row.