Skip to main content

Module pb

Module pb 

Source
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§

AddNamedGraphRequest
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.
AddNamedGraphResponse
AxisHeadCountHit
AxisHeadMaxCommitTsRequest
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). 0 when no key matches. Same permutation ownership rules as AxisHeadScan.
AxisHeadMaxCommitTsResponse
AxisHeadScanCountsRequest
Axis head count scan: cardinalities of the whole permutation CF (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). TOTAL returns the number of distinct slot-0 terms; PER_HEAD returns 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. limit counts emitted hits in PER_HEAD mode (0 = unlimited, ignored in TOTAL mode); start_after_term is the exclusive resume cursor (PER_HEAD only).
AxisHeadScanCountsResponse
AxisHeadScanRequest
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, limit over distinct terms, and exclusive start_after_term resume cursor as DomainScan.
AxisHeadScanResponse
Blob
One whole content-addressed blob of a batched unary put. id is the 16-byte SipHash of data (validated on the server before anything is written); data must 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.
BlobChunk
One content-addressed blob chunk. blob_id is the 16-byte SipHash of the FULL payload (the hash the writer already computed). seq is 0-based; total_chunks lets the peer assemble out-of-order deliveries from one call. Content addressing is validated on assembly: a put whose assembled payload does not hash to blob_id is rejected; a get delivers every chunk of a hit (misses send nothing — the stream just ends).
CompactRangeRequest
Full-range compact of both axis-local column families (RocksDB). Memory backends treat the RPC as a successful no-op.
CompactRangeResponse
ComputeDescribeRequest
ComputeDescribeResponse
CountPatternResponse
Cardinality of a prefix scan under the same MVCC rules as ScanPattern. Matching quads stay on the partition; only the count is returned.
DeleteGeoTermRequest
Delete every posting under one term prefix (geo index rebuild).
DeleteGeoTermResponse
DomainScanCountHit
DomainScanCountRequest
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 (see DomainCountMode); with the default ROWS, 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_graph seeks past remaining G after the first visible Put of each S/P/O prefix (RDF-merge default graph), which makes ROWS coincide with DISTINCT_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. limit counts emitted (constraint, term, count) triples; 0 means unlimited. Empty constraints yields an empty response. start_after_constraint / start_after_term are an exclusive resume cursor at run boundaries (empty bytes = unset).
DomainScanCountResponse
DomainScanHit
DomainScanRequest
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. limit counts emitted (constraint, term) pairs; 0 means unlimited. Empty constraints yields an empty response. start_after_constraint / start_after_term are an exclusive resume cursor (empty bytes = unset).
DomainScanResponse
EncodedQuad
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.
EncodedTriplePattern
Partially-bound encoded pattern. An absent slot is a variable; a present but empty graph_name is the default graph.
FinishGeoIndexRebuildRequest
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.
FinishGeoIndexRebuildResponse
FinishTextIndexRebuildRequest
Finish the text index rebuild: release the lease, and — when stamp — stamp epoch = max commit_ts observed on this partition on the index. Rejected unless the caller holds the lease. stamp = false releases without stamping: the index stays untrusted (an import that failed, or a walk that skipped unresolved lexicals, must not mark the index built).
FinishTextIndexRebuildResponse
FlushMemtablesRequest
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.
FlushMemtablesResponse
GeoCandidateScanRequest
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).
GeoCandidateScanResponse
GeoIndexPut
One O-axis geometry-index posting (compute-derived S2 index row).
GetBlobsRequest
GetBlobsResponse
GetGeoHistogramRequest
GetGeoHistogramResponse
GetStatsProfileRequest
Shard-level statistical profile (Phase 7). Bytes are a waratah_stats StatsProfile blob (WST1 magic). 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.
GetStatsProfileResponse
GetTemporalHistogramRequest
The temporal tick histogram frame (waratah_stats::TickHistogram section bytes, self-versioned encode_body; bounded by construction, no trim machinery).
GetTemporalHistogramResponse
GetTextSeedSketchRequest
The text seed-population sketch frame (waratah_stats::TextSeedSketch section bytes, self-versioned encode_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.
GetTextSeedSketchResponse
HealthRequest
Cheap liveness probe. serving is true when the process can answer RPCs; detail is an error string when it cannot (empty when serving).
HealthResponse
HexastoreDescribeRequest
HexastoreDescribeResponse
InsertQuadsRequest
InsertQuadsResponse
ListNamedGraphsRequest
List the S-axis named-graph catalog at snapshot_id. Includes empty graphs. Never includes the RDF default graph. P/O partitions return UNIMPLEMENTED.
ListNamedGraphsResponse
LsmMetrics
Optional LSM / process counters. Memory backends omit the RocksDB fields.
PutBlobRequest
PutBlobResponse
PutBlobsRequest
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.
PutBlobsResponse
PutGeoIndexRequest
Apply geometry-index postings on the O partition (same commit_ts / op contract as InsertQuads). Non-O partitions return UNIMPLEMENTED.
PutGeoIndexResponse
PutTemporalIndexRequest
Apply temporal-index postings on the O partition (same commit_ts / op contract as InsertQuads). Non-O partitions return UNIMPLEMENTED.
PutTemporalIndexResponse
PutTextIndexRequest
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.
PutTextIndexResponse
QuadVersion
One versioned hexastore record: quad plus its Phase 2b version metadata.
RebuildGeoIndexRequest
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).
RebuildGeoIndexResponse
RebuildTemporalIndexRequest
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 rebuild path). The partition executes the walk under a single in-process lock: the first caller STARTS the rebuild and this RPC returns immediately; concurrent callers receive already_in_progress and poll Describe for temporal_index_epoch. Compute owns the coverer budget policy — it rides this request.
RebuildTemporalIndexResponse
RebuildTextIndexRequest
Open-or-create the O partition’s text index with config and take the rebuild lease (free, or expired-stale takeover). wipe = true empties the documents first (startup build / offline rebuild, where nothing is serving); wipe = false keeps 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.
RebuildTextIndexResponse
RegisterStringsRequest
RegisterStringsResponse
RegistryDescribeRequest
RegistryDescribeResponse
RenewGeoRebuildLeaseRequest
Refresh the held geo rebuild lease (driver-side keepalive per batch).
RenewGeoRebuildLeaseResponse
RenewTextRebuildLeaseRequest
Refresh the held text rebuild lease (driver-side keepalive per batch). Rejected unless lease_token identifies the current fresh lease.
RenewTextRebuildLeaseResponse
ReplaceQuadsRequest
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).
ReplaceQuadsResponse
RepositoryInfo
ResolveStringsRequest
ResolveStringsResponse
ResolvedString
RoutingNode
RoutingSnapshot
ScanPatternRequest
ScanPatternResponse
SlotComparison
One slot OP term comparison pushed into the partition’s scan walk.
StringEntry
TemporalCandidateScanRequest
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).
TemporalCandidateScanResponse
TemporalIndexPut
One staged temporal-index posting (compute-built or rebuild-derived; the O partition applies it verbatim and never interprets ticks).
TextCandidateScanRequest
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.
TextCandidateScanResponse
TextIndexDoc
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.
TextSubjectRow
One resolved row of the text subject scan.
TextSubjectScanRequest
TextSubjectScanResponse

Enums§

AxisHeadCountMode
What an axis head count scan reports.
CompareOp
Operator applied by one SlotComparison.
DomainCountMode
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.
GeoHistogramSection
ONE geo cell-count histogram frame (waratah_stats::GeoCellHistogram section bytes, self-versioned encode_body). A frame carries exactly ONE map — the unrequested maps arrive EMPTY — because merge is 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 omits section (or sends an unknown value) is rejected by the handler rather than silently served the fine frame.
IndexPermutation
Index permutation within a partition axis.
PartitionAxis
Hexastore partition axis. The optional G axis is deferred past the MVP.
PatternSlot
Term slot used by broadcast-join filters on ScanPattern.
ScanExhaustion
Why one scan page ended — the server-side fact that replaces the client’s short-page inference. rows.len() < limit cannot 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 set verdict_wanted; UNSPECIFIED (the zero value) is a placeholder no producer places — an unset field means “no verdict purchased”, not a verdict value.
StorageBackend
StorageOp
Semantic operation stored in a hexastore record value.
TextCandidateMode