Expand description
Generated waratah.v1 messages, clients, and server traits.
Modules§
- compute_
client - Generated client implementations.
- compute_
server - Generated server implementations.
- geo_
candidate_ scan_ request - Nested message and enum types in
GeoCandidateScanRequest. - hexastore_
client - Generated client implementations.
- hexastore_
server - Generated server implementations.
- replace_
quads_ request - Nested message and enum types in
ReplaceQuadsRequest. - string_
registry_ client - Generated client implementations.
- string_
registry_ server - Generated server implementations.
Structs§
- AddNamed
Graph Request - Insert an empty named graph into the S-axis catalog (no hexastore quad). NamedNode only; DefaultGraph / blank / empty bytes are rejected. P/O partitions return UNIMPLEMENTED.
- AddNamed
Graph Response - Axis
Head Count Hit - Axis
Head MaxCommit TsRequest - Max commit_ts among the versioned keys whose slot-0 head term starts with
one of
head_prefixes(partial encoded-term prefixes, same byte semantics as AxisHeadScanRequest head_prefixes). EVERY version counts — liveness is not evaluated — so the result only ever overestimates, which is safe for its one consumer: the geo upgrade’s stage-1 swap-timestamp bound (the replacement ts must dominate the newest version of every row it deletes, and the walked data is the only authority for that bound).0when no key matches. Same permutation ownership rules as AxisHeadScan. - Axis
Head MaxCommit TsResponse - Axis
Head Scan Counts Request - Axis head count scan: cardinalities of the whole
permutationCF (SPOG subjects, PSOG predicates, OPSG objects, TSG classes — TSG stores only rdf:type quads, so its head is the class slot). Same visibility semantics as AxisHeadScan (per-logical-quad MVCC collapse,op == Put, graph window,iri_only_head).TOTALreturns the number of distinct slot-0 terms;PER_HEADreturns one hit per slot-0 head whose count is the number of distinct slot-1 terms under it (TSG per-class subject counts). The permutation must be one of SPOG / PSOG / OPSG / TSG; any other value is invalid_argument, and a permutation not owned by the serving axis returns UNIMPLEMENTED.limitcounts emitted hits inPER_HEADmode (0= unlimited, ignored inTOTALmode);start_after_termis the exclusive resume cursor (PER_HEADonly). - Axis
Head Scan Counts Response - Axis
Head Scan Request - Axis head scan: distinct slot-0 head terms of one whole axis-local CF
(SPOG subjects, PSOG predicates, OPSG objects, TSG classes — TSG stores
only rdf:type quads, so its head is the class slot). The permutation must
be one of SPOG / PSOG / OPSG / TSG; any other value is invalid_argument,
and a permutation not owned by the serving axis returns UNIMPLEMENTED.
Same existence-only G semantics,
limitover distinct terms, and exclusivestart_after_termresume cursor as DomainScan. - Axis
Head Scan Response - Blob
- One whole content-addressed blob of a batched unary put.
idis the 16-byte SipHash ofdata(validated on the server before anything is written);datamust be non-empty (empty payloads cannot round-trip the streamed read path) and must fit the gRPC message ceiling by construction — a batch is framed by the caller under its byte budget. - Blob
Chunk - One content-addressed blob chunk.
blob_idis the 16-byte SipHash of the FULL payload (the hash the writer already computed).seqis 0-based;total_chunkslets the peer assemble out-of-order deliveries from one call. Content addressing is validated on assembly: a put whose assembled payload does not hash toblob_idis rejected; a get delivers every chunk of a hit (misses send nothing — the stream just ends). - Compact
Range Request - Full-range compact of both axis-local column families (RocksDB). Memory backends treat the RPC as a successful no-op.
- Compact
Range Response - Compute
Describe Request - Compute
Describe Response - Count
Pattern Response - Cardinality of a prefix scan under the same MVCC rules as ScanPattern. Matching quads stay on the partition; only the count is returned.
- Delete
GeoTerm Request - Delete every posting under one term prefix (geo index rebuild).
- Delete
GeoTerm Response - Domain
Scan Count Hit - Domain
Scan Count Request - Domain count scan: run lengths of slot-1 head terms under each slot-0
constraint of one axis-local index — the same constraint/head families as
DomainScan (POSG predicates→objects, SPOG subjects→predicates, SOPG
subjects→objects, OPSG objects→predicates), but instead of skipping each
head’s run, the walk counts it. The permutation must be one of SPOG / SOPG
/ POSG / OPSG; any other value is invalid_argument, and a permutation not
owned by the serving axis returns UNIMPLEMENTED. What one increment
represents is
count_mode(seeDomainCountMode); with the defaultROWS, the graph window applies PER ROW: a head present in two graphs of the window counts twice (bag semantics — the pairs reconstruct the visible multiset).merge_default_graphseeks past remaining G after the first visible Put of each S/P/O prefix (RDF-merge default graph), which makesROWScoincide withDISTINCT_TERMS. The graph filter is unchanged — it still decides which G rows are eligible. Runs with zero visible rows are not emitted, so the (constraint, term, count) triples reconstruct the exact grouped counts of the visible solution rows.limitcounts emitted (constraint, term, count) triples; 0 means unlimited. Emptyconstraintsyields an empty response.start_after_constraint/start_after_termare an exclusive resume cursor at run boundaries (empty bytes = unset). - Domain
Scan Count Response - Domain
Scan Hit - Domain
Scan Request - Domain scan: distinct slot-1 head terms under each slot-0 constraint of one
axis-local index (POSG predicates→objects, SPOG subjects→predicates, SOPG
subjects→objects, OPSG objects→predicates). The permutation must be one of
SPOG / SOPG / POSG / OPSG; any other value is invalid_argument, and a
permutation not owned by the serving axis returns UNIMPLEMENTED. G is
existence-only: a head term is emitted when any visible Put quad satisfies
the graph window, and the graph slot is never returned.
limitcounts emitted (constraint, term) pairs; 0 means unlimited. Emptyconstraintsyields an empty response.start_after_constraint/start_after_termare an exclusive resume cursor (empty bytes = unset). - Domain
Scan Response - Encoded
Quad - Encoded quad. Each slot carries Oxigraph-compatible encoded term bytes; long strings are already reduced to StrHash references, so no raw strings travel on the hexastore wire.
- Encoded
Triple Pattern - Partially-bound encoded pattern. An absent slot is a variable; a present but empty graph_name is the default graph.
- Finish
GeoIndex Rebuild Request - Finish the geo index rebuild: stamp
epoch = max commit_ts observed on this partition(equal, never +1 — captured at finish, under the lease) and release the lease. Rejected unless the caller holds the lease. - Finish
GeoIndex Rebuild Response - Finish
Text Index Rebuild Request - Finish the text index rebuild: release the lease, and — when
stamp— stampepoch = max commit_ts observed on this partitionon the index. Rejected unless the caller holds the lease.stamp = falsereleases without stamping: the index stays untrusted (an import that failed, or a walk that skipped unresolved lexicals, must not mark the index built). - Finish
Text Index Rebuild Response - Flush
Memtables Request - Flush MemTables on this partition to SST files (RocksDB). Memory backends treat the RPC as a successful no-op. Also seals the open stats sketch block.
- Flush
Memtables Response - GeoCandidate
Scan Request - Sorted, merged list of S2 cell-id intervals to probe: covering cells’ [range_min, range_max] descendant ranges ∪ exact ancestor cell ids as single-value ranges. One call drains the whole candidate set — this RPC is NEVER cursor-paged (a new iterator would clear the partition’s DISTINCT seen-set and re-emit geometries).
- GeoCandidate
Scan Response - GeoIndex
Put - One O-axis geometry-index posting (compute-derived S2 index row).
- GetBlobs
Request - GetBlobs
Response - GetGeo
Histogram Request - GetGeo
Histogram Response - GetStats
Profile Request - Shard-level statistical profile (Phase 7). Bytes are a
waratah_statsStatsProfile blob (WST1magic). CORE profile only since the frame split: the geo cell-count histogram and temporal histogram sections arrive EMPTY here — each rides its own RPC below with its own budget, one map per message under the shared gRPC message ceiling. - GetStats
Profile Response - GetTemporal
Histogram Request - The temporal tick histogram frame (
waratah_stats::TickHistogramsection bytes, self-versionedencode_body; bounded by construction, no trim machinery). - GetTemporal
Histogram Response - GetText
Seed Sketch Request - The text seed-population sketch frame (
waratah_stats::TextSeedSketchsection bytes, self-versionedencode_body, wire-trimmed deepest-first). O axis only; S/P partitions return UNIMPLEMENTED. Empty bytes = no trusted sketch (never built, wiped, or undecodable) — compute keeps its unpriced estimate. - GetText
Seed Sketch Response - Health
Request - Cheap liveness probe.
servingis true when the process can answer RPCs;detailis an error string when it cannot (empty when serving). - Health
Response - Hexastore
Describe Request - Hexastore
Describe Response - Insert
Quads Request - Insert
Quads Response - List
Named Graphs Request - List the S-axis named-graph catalog at
snapshot_id. Includes empty graphs. Never includes the RDF default graph. P/O partitions return UNIMPLEMENTED. - List
Named Graphs Response - LsmMetrics
- Optional LSM / process counters. Memory backends omit the RocksDB fields.
- PutBlob
Request - PutBlob
Response - PutBlobs
Request - Batched unary blob put: many whole blobs in one round trip. Server-side the batch is atomic: every content hash is validated before anything is written and one index commit carries the whole batch, so a failed call commits nothing while blobs that already existed stay put (content addressing makes any put of the same id a no-op, so retrying the whole batch is idempotent). Durability is one-way: segment records are fdatasynced before the commit, and the commit itself fsyncs the index write-ahead log.
- PutBlobs
Response - PutGeo
Index Request - Apply geometry-index postings on the O partition (same commit_ts / op contract as InsertQuads). Non-O partitions return UNIMPLEMENTED.
- PutGeo
Index Response - PutTemporal
Index Request - Apply temporal-index postings on the O partition (same commit_ts / op contract as InsertQuads). Non-O partitions return UNIMPLEMENTED.
- PutTemporal
Index Response - PutText
Index Request - Append documents to the O partition’s text index. Sent BEFORE the three axis InsertQuads calls: the index is then always at or ahead of visible rows, so a crash leaves harmless extra documents, never a visible row without its document. Non-O partitions return UNIMPLEMENTED.
- PutText
Index Response - Quad
Version - One versioned hexastore record: quad plus its Phase 2b version metadata.
- Rebuild
GeoIndex Request - Begin the O-axis geo index rebuild (the upgrade/rebuild lease). The partition takes the rebuild lease (free, or expired-stale takeover), wipes the whole geo_index CF, and returns; the CALLING compute then drives the walk (stream geo terms, cover, post back) and finishes with FinishGeoIndexRebuild. Unlike the temporal rebuild the walk is NOT partition-owned, so the lease carries a deadline: Describe reports in-progress only while the lease is fresh, and a later RebuildGeoIndex force-takes-over a stale lease (a crashed driver can never wedge the index permanently).
- Rebuild
GeoIndex Response - Rebuild
Temporal Index Request - Rebuild the O-axis temporal index from the hexastore (auto-triggered on
first startup with the plugin when the epoch is missing; also the manual
waratah temporal index rebuildpath). The partition executes the walk under a single in-process lock: the first caller STARTS the rebuild and this RPC returns immediately; concurrent callers receivealready_in_progressand poll Describe fortemporal_index_epoch. Compute owns the coverer budget policy — it rides this request. - Rebuild
Temporal Index Response - Rebuild
Text Index Request - Open-or-create the O partition’s text index with
configand take the rebuild lease (free, or expired-stale takeover).wipe = trueempties the documents first (startup build / offline rebuild, where nothing is serving);wipe = falsekeeps them (live repair, where an in-flight write may have committed a document whose row the walk cannot see yet). The calling compute drives the walk and finishes with FinishTextIndexRebuild. - Rebuild
Text Index Response - Register
Strings Request - Register
Strings Response - Registry
Describe Request - Registry
Describe Response - Renew
GeoRebuild Lease Request - Refresh the held geo rebuild lease (driver-side keepalive per batch).
- Renew
GeoRebuild Lease Response - Renew
Text Rebuild Lease Request - Refresh the held text rebuild lease (driver-side keepalive per batch).
Rejected unless
lease_tokenidentifies the current fresh lease. - Renew
Text Rebuild Lease Response - Replace
Quads Request - Atomically replace the object term of live quads (the geo upgrade migration’s primitive — datatype-blind). For each pair the versioned rows of (subject, predicate, old_object, graph) are Deleted and rows of (subject, predicate, new_object, graph) are Put in ONE WriteBatch at the shared commit_ts, so no snapshot sees both rows or neither. Served by ALL THREE axis partitions: each translates the pairs into its own permutation key encodings and applies only its own rows. Idempotent on retry (same pair at the same ts writes identical version keys).
- Replace
Quads Response - Repository
Info - Resolve
Strings Request - Resolve
Strings Response - Resolved
String - Routing
Node - Routing
Snapshot - Scan
Pattern Request - Scan
Pattern Response - Slot
Comparison - One
slot OP termcomparison pushed into the partition’s scan walk. - String
Entry - Temporal
Candidate Scan Request - Sorted, merged list of dyadic key intervals to probe (per-node descendant ranges ∪ exact ancestor keys). Ticks are 16-byte big-endian; one call drains the whole candidate set — this RPC is NEVER cursor-paged (a new iterator would clear the partition’s DISTINCT seen-set and re-emit terms).
- Temporal
Candidate Scan Response - Temporal
Index Put - One staged temporal-index posting (compute-built or rebuild-derived; the O partition applies it verbatim and never interprets ticks).
- Text
Candidate Scan Request - One candidate drain. One call drains the whole distinct candidate set — this RPC is NEVER cursor-paged (a second call restarts the partition’s dedup set and re-emits terms). The index carries no per-document visibility: candidates are independent of row visibility, and the join with visible rows is the visibility filter.
- Text
Candidate Scan Response - Text
Index Doc - One text-index document: a distinct string-literal term and the lexical form the partition analyses. Compute derives one per distinct literal and owns the term encoding; the partition never invents documents and never decodes the term bytes.
- Text
Subject Row - One resolved row of the text subject scan.
- Text
Subject Scan Request - Text
Subject Scan Response
Enums§
- Axis
Head Count Mode - What an axis head count scan reports.
- Compare
Op - Operator applied by one SlotComparison.
- Domain
Count Mode - What one run-count increment of the domain count scan represents. A run is the (constraint, term) prefix extent of one DomainScanCountHit; inside it the key order is slot 2 then G, with version rows under each logical (slot-2, G) pair.
- GeoHistogram
Section - ONE geo cell-count histogram frame (
waratah_stats::GeoCellHistogramsection bytes, self-versionedencode_body). A frame carries exactly ONE map — the unrequested maps arrive EMPTY — becausemergeis per-key additive, a subset-populated section is a valid merge input on its own. Zero is the proto3 default, so it stays UNSPECIFIED: a caller that omitssection(or sends an unknown value) is rejected by the handler rather than silently served the fine frame. - Index
Permutation - Index permutation within a partition axis.
- Partition
Axis - Hexastore partition axis. The optional G axis is deferred past the MVP.
- Pattern
Slot - Term slot used by broadcast-join filters on ScanPattern.
- Scan
Exhaustion - Why one scan page ended — the server-side fact that replaces the
client’s short-page inference.
rows.len() < limitcannot distinguish “stopped at the limit” from “ran out, exactly at the limit”, which costs a zero-row confirm request at every exact boundary. The verdict is present on a response only when the request setverdict_wanted; UNSPECIFIED (the zero value) is a placeholder no producer places — an unset field means “no verdict purchased”, not a verdict value. - Storage
Backend - Storage
Op - Semantic operation stored in a hexastore record value.
- Text
Candidate Mode