Expand description
Stateless compute coordinator for the five-process MVP cluster.
Write path (Phase 5): encode a quad once, register hashed strings on the
string-registry process, and fan InsertQuads out in parallel to the
S, P, and O hexastore partitions.
Read path (Phase 6–9c): parse SPARQL SELECT / ASK / CONSTRUCT / DESCRIBE
with spargebra, rewrite via sparopt, lower to a Waratah plan tree
(scans / joins / FILTER / OPTIONAL / UNION / VALUES / BIND / GROUP BY /
aggregates / property paths / LIMIT / OFFSET / nested SELECT as an opaque
SubSelect boundary), route each scan to one hexastore axis, execute broadcast /
shuffle / hash joins via waratah_exec, and resolve raw strings from the
registry for projected columns or result-graph terms. DESCRIBE uses a
DescribeMode configured on the compute node (star default).
Each compute also serves gRPC Health/Describe and can assemble a
ClusterSnapshot for GET /waratah/cluster from the static
waratah_router::ClusterConfig membership list (no gossip).
Forward hooks: Raft (Phase 8) wraps the same hexastore apply path and
supplies SnapshotId from a cluster TSO; multi-registry process sharding
uses waratah_router::ClusterConfig::registry_for_hash. This crate does
not co-locate registry with partitions, and implements no consensus, gossip,
or cloud tiering.
Re-exports§
pub use plugin::PluginHost;
Modules§
- core_
width - Process-wide core width for executor parallelism decisions.
- plugin
- Generic plugin seams: writes, plan, and execution.
- strict_
sparql strict-sparqlcompatibility mode: a process-wide toggle that gates Waratah’s documented SPARQL deviations behind strict 1.1 adherence.
Macros§
- query_
trace - Emit a
TraceEventonly when tracing is enabled.
Structs§
- Applied
Graph - The four-field graph scope a lowered scan carries: which graphs the pattern may read at its plan position. Public so plugins that mint scans outside the SPARQL lowering (the text plugin’s subject-mode candidates) can copy a sibling scan’s scope and keep visibility identical to the surrounding BGP.
- Broadcast
Filter - Allow-list of encoded terms for one unbound pattern slot (Phase 9b broadcast).
- Class
Summary - One class in the summary.
- Cluster
Knobs - Knobs copied onto self / Compute Describe.
- Cluster
Snapshot - JSON body of
GET /waratah/cluster. - Compute
Admin Service - Identity advertised on the compute gRPC Describe RPC.
- Compute
Node - Connected compute coordinator.
- Compute
View - One compute coordinator as seen by this request.
- Custom
Function - A registered custom function: IRI, arity bounds, and its callables.
- Custom
Functions - IRI-keyed map of custom functions.
- Custom
Op - One plugin-defined custom operator.
- Custom
OpCost - Explicit execution-cost model for one plugin op (
CustomOp::cost). - Encoded
Solutions - Variable-keyed columnar solutions of interned TermIds.
- Exists
Clause - One
EXISTS { P }orNOT EXISTS { P }FILTER conjunct. - Explain
Options - Dataset knobs for
LogicalPlan::explain_with. - Graph
Filter - Allow-list or block-list of encoded graph names for a scan RPC.
- Grpc
Hexastore Clients - Tonic clients for all three hexastore axes.
- Grpc
Registry Clients - Tonic client(s) for the string-registry endpoint(s).
- Hexastore
Describe - Decoded hexastore
Describepayload for the cluster snapshot. - Insert
Result - Outcome of a successful fan-out insert.
- Join
Edge - Flat join record for BGP pipeline building and plan inspection.
- Join
Meta - Planner annotations on an inner join (costing / execution hints).
- LogSink
- Always-compiled operational logger for the SPARQL executor.
- Logical
Plan - A
SELECTreduced to a plan tree and a projection list. - LsmMetrics
View - Optional LSM counters (absent on memory backends).
- Notebooks
Capability - Notebook service capability block on a compute entry.
- Output
Vars - Output variable boundness for a plan subtree.
- PathOp
- One property-path leaf after lowering.
- Phase
Timers - Cumulative wall-time counters for one query execute: hexastore scan RPCs and string-registry resolve RPCs.
- Planner
Summary - Cheap planner-cache summary (no CMS/HLL).
- Projected
Solutions - SELECT rows still encoded, plus interned strings from a registry resolve.
- Property
Summary - One property in the summary.
- Query
Context - Per-query policy, identity, and sinks for SPARQL plan + execute.
- Query
Dataset - Resolved SPARQL dataset for one query (planner + executor).
- Query
Engine - SPARQL coordinator over the hexastore and registry endpoints.
- RdfParse
Options - Parser options shared by CLI import and HTTP ingest.
- RdfParse
Pipeline - Parser thread plus the chunk channel it fills.
- Registry
Describe - Decoded registry
Describepayload. - Repo
Info - One RDF repository this HTTP server exposes.
- Resolve
Cache - Process-lifetime LRU of
StrHash→ resolved string, shared by all queries on a compute node. - Retry
Policy - How many times to retry a transient RPC before giving up.
- Routing
View - Routing table dump for one compute.
- ScanOp
- One triple pattern resolved to an encoded scan plus its variable slots.
- Schema
Summary - The computed summary.
- Schema
Summary Limits - Resolved limits the API layer reports and clamps against.
- Schema
Summary Params - Caller request for a summary; limits must already be clamped to the server maxima by the route layer.
- Security
Context - Permissions for the user running this query.
- Slot
Mark - Liveness plus bag mark stamped on every scan slot after [
crate::liveness::annotate_liveness]. - SortKey
- One SPARQL
ORDER BYkey. - Stats
Profile - Mergeable statistical profile for one shard or the whole cluster.
- Storage
View - Hexastore partition or string-registry process.
- SubSelect
Op - Lowered nested
SELECT(SubSelect) boundary. - Term
Dict - Re-exported so a plugin that stands in for the subject resolve (a test
double, or a plugin-provided window) can intern its rows into the same
query dictionary the engine uses, without a direct
waratah_execdependency. Bidirectional intern table for one SPARQL query. - Text
Subject Window - One resolved
(subject, graph)window, interned into the query dict. - Text
Subject Window Builder - Intern one window’s rows as the partition pages arrive.
- Trace
Sink - High-volume execution-order / RPC / timing sink.
- Values
Op - SPARQL
VALUEStable after encoding (UNDEF cells areNone). - Write
Fanout - Coordinator that fans one logical insert out to registry + S/P/O.
Enums§
- BagMark
- Per-variable bag mark after the liveness walk.
- Compute
Error - Failure on the compute write or SELECT path.
- Custom
Eval - Outcome of a custom function invocation.
- Default
Graph Window - How a bare BGP / path (SPARQL default graph) binds G.
- Describe
Mode - How
QueryEnginebuilds a DESCRIBE result graph. - Domain
Scan Kind - Slot roles shared by the distinct domain scan and the domain count scan.
- Exists
Kind - How a lowered
ExistsClausewill run. - Explain
Format - EXPLAIN output kind (
format=query param / CLI--format). - Expr
Capability - How far an expression can be evaluated without the string registry.
- Head
Scan Kind - Which bare axis-head-scan rewrite a
ScanOpuses. - Instance
Counts - Whether instance counts are computed.
- Join
Strategy - Physical join hint chosen at plan time (Phase 9b executes broadcast/shuffle).
- Liveness
- Whether a scan slot column is projected downstream.
- LogLevel
- Operational log severity. Higher values are more verbose.
- Mints
- Mint provenance of an expression’s encoded-path term construction: what it takes to resolve the bytes of a term the evaluator mints from this expression, and therefore what seeding the constant positions of the expression owe the query-local cache.
- Named
Graph Window - How
GRAPHpatterns bind G. - Node
Status - Probe outcome.
- Plan
Node - Physical plan tree after sparopt + Waratah lowering.
- Property
Kind - Property kind derived from its
rdf:typedeclarations. - Property
Path - Compiled SPARQL 1.1 property path over interned
EncodedTermpredicates. - Query
Output - Query result after execute (and, for SELECT, registry resolve).
- Query
Results - Materialized query results: SELECT bindings, an ASK boolean, or a graph.
- Trace
Event - Structured execution-trace event (scan / join / path / RPC timing).
Constants§
- AUTO_
INSTANCE_ COUNT_ MAX_ TRIPLES instanceCounts=autocomputes counts only up to this triple count.- CLUSTER_
PROBE_ TIMEOUT - Per-peer / per-partition probe budget so one down node cannot stall HTTP.
- CONCURRENT_
STAR_ OVER_ FETCH_ PERCENT - Extra probe rows a concurrent star may read, per 100 rows the plain-join plan would have returned from that probe. 15 means at most 1.15×.
- DEFAULT_
JOIN_ CHUNK_ CAP - Cap one eager join chunk at this many rows when the budget would allow more
(matches
crate::SCAN_BATCHso a chunk is not the whole query). - DEFAULT_
QUERY_ MEMORY_ BUDGET_ BYTES - Default per-query RAM budget used to size eager join chunks (Phase 2).
- DEFAULT_
RESOLVE_ CACHE_ BYTE_ BUDGET - Summed string-length budget for cached entries (bytes).
- DEFAULT_
RESOLVE_ CACHE_ ENTRIES - Default entry capacity (
WARATAH_RESOLVE_CACHE_ENTRIESoverrides;0disables the cache). At ~100–150 bytes per typical IRI entry this bounds the cache at roughly 30–60 MiB of payload plus map overhead. - FETCH_
ONCE_ MARGIN_ MILLI - How many times over its whole-read price per-page mode may cost before
the fetch-once trigger fires, in milli (1400 = 1.4×). The build price
is one sequential drain of the arm’s UNCLAMPED estimate
(
whole_read_rows); the probe price ispages × (seeks × SEEK_EQUIV + matched × MATCHED_ROW_EQUIV). - FETCH_
ONCE_ MATCHED_ BOUND_ EQUIV_ MILLI - Cost of one row in the fetch-once trigger’s per-page price when the matched count is the unknown-domain fallback rather than an estimate, in milli-rows.
- FETCH_
ONCE_ MATCHED_ ROW_ EQUIV_ MILLI - Cost of one MATCHED row in the fetch-once trigger’s per-page price, in milli-rows: one row an allow-list fetch returns costs this many sequentially-streamed rows. Matched rows are not free even though the seek-union transport fetches them in one pass: each returned row pays the wire fetch (≈ 1.0) plus decode, intern and batch-table assembly (≈ 0.23) on the compute side.
- FETCH_
ONCE_ SEEK_ EQUIV_ MILLI - Seek-vs-scan exchange rate for the fetch-once trigger predicate, in milli-rows: one index seek costs this many sequentially-streamed rows.
- GROUP_
FOLD_ BATCH - Rows per fold batch in the
GROUP BYexecutor’s pipelined loop. - INSERT_
QUAD_ CHUNK - Maximum quads sent in one
InsertQuadsRPC. - MAX_
CLASSES - Server maximum for returned classes (contract:
"caps".classes). - MAX_
PROPERTIES - Server maximum for returned properties (contract:
"caps".properties). - MAX_
UNARY_ SCAN_ QUADS - Ceiling for “provably small” unlimited scans that may take the unary
ScanPatternRPC (one round trip) instead of the storage-drivenScanPatternStreamendpoint. Derived, not chosen: the worst-case serialized row iswaratah_proto::WORST_CASE_QUAD_WIRE(143 bytes — four max-width encoded terms plus proto framing, pinned by a test against the real encoder), so onewaratah_proto::GRPC_MAX_MESSAGE_SIZEmessage holds at most this many rows no matter what data the encoder produces. The value sits at the exact floor of that division by design — worst-case means the message may be full to the last varint. - OPEN_
STAR_ PAIR_ BUDGET - Default distinct-pair circuit breaker for
*/+with no LIMIT. - PARALLEL_
PROBE_ PAGES_ DEFAULT - The default batch-fill page ceiling. Kept as a named constant so
reset_parallel_probe_pagesand the static’s initializer share one number. - PARALLEL_
PUSHDOWN_ WAVE_ MAX - Wave ceiling on chunk fetches dispatched concurrently for one
over-threshold broadcast pushdown (the parallel pushdown transport in
[
crate::query::parallel_pushdown]). An over-threshold term list is sliced intowaratah_stats::PUSHDOWN_TERMS_LIMIT-term chunks; at most this many chunk fetches are outstanding at once, the rest queue and dispatch as the pool frees. The EFFECTIVE ceiling is the query’s free-permit count: the arm-permit pool — sized fromQUERY_FETCH_CONCURRENCYincontext.rsas the engine fetch concurrency plus one permit for the query root’s own whole-execution hold — funds what actually dispatches, so at the default fetch concurrency (3, a 4-permit pool) this knob rarely binds, and a pool with nothing free degrades the transport todegrade_to_chunked_serial: one sequential RPC per remaining chunk, never a concatenated multi-chunk request and never the unfiltered whole read the producing verdict rejected. - PATH_
PAIR_ BUDGET - Default distinct-pair circuit breaker for bound / one-end walks (8e6).
- PROBE_
SEEK_ CONCURRENCY_ CURVE - Measured realized-seek-concurrency curve for the parallel probe road:
(funded fetch concurrency in milli → realized wall-clock speedup in milli).
Funding
wpermits of concurrent chunk fetches buysrealized(w)speedup — sublinear, because the fetch path is part CPU work (decode, dedup, table assembly), and saturating near the box’s physical core count. Lookup interpolates linearly between points; a funded fetch concurrency above the last point clamps to it, and below the first point returns 1000 (one outstanding fetch at a time realizes exactly itself). The table must be STRICTLY INCREASING in its funded value — the lookup debug-asserts it, and a duplicate funded value (which would make the interpolation span zero) resolves to the higher point’s realized value instead of dividing by zero. - PUSHDOWN_
MIN_ POLLUTION_ MILLI - Minimum milli-scale vocabulary pollution for an over-threshold Broadcast term list to stay on the parallel pushdown transport, instead of dropping the key to the unfiltered whole read. Pollution is the fraction of the probed arm’s rows that no pushed term can match: at or below this threshold the whole read fetches mostly useful rows and is the cheaper road (no seeks at all); above it the majority of a whole read would be dead rows and the seek-union transport wins. An unresolvable estimate (probe key domain unknown) reads as maximally polluted, so the gate can only ever keep the transport — it never introduces a whole read the pre-gate code would not have taken.
- PUT_
BLOBS_ BATCH_ BYTES - Byte budget for one batched
PutBlobsRPC (headroom underwaratah_proto::GRPC_MAX_MESSAGE_SIZE). - RESOLVE_
STRING_ CHUNK - Maximum hashes in one
ResolveStringsRPC (same bound as insert / broadcast). - SCAN_
BATCH - Default encoded rows pulled per scan RPC when filling a
Slice— a pacing policy, not a wire bound, and deliberately not tied to any other constant. It must stay AT MOST both of its two ceilings (compile-time asserts injoin_chunks.rsenforce<=; the value sits strictly below both so the legality properties are margins, not boundary coincidences):
Traits§
- Blob
Store Client - Content-addressed blob client against the registry process.
- Hexastore
Admin - Health + Describe for cluster HTTP (hexastore axes).
- Hexastore
Axis Head Stats - Max commit_ts among the versioned keys whose slot-0 head term falls under
head_prefixes(every version counts; liveness is not evaluated, so the result only ever overestimates — safe for its one consumer, the geo upgrade’s stage-1 swap-timestamp bound). - Hexastore
Catalog - S-axis named-graph catalog (empty graphs included; never the RDF default graph).
- Hexastore
Compact - Full-range compact on one hexastore axis.
- Hexastore
Flush - Flush MemTables to SST on one hexastore axis.
- Hexastore
Geo - O-axis geometry-index client (GeoSPARQL plugin path).
- Hexastore
Insert - Insert versioned quads onto one hexastore axis.
- Hexastore
Scan - Scan a pattern on one hexastore axis, as of a snapshot.
- Hexastore
Stats - Fetch a shard statistical profile (Phase 7).
- Prepared
Literal Cache - Query-local source data and prepared values available to a cache-aware encoded custom function.
- Registry
Admin - Health + Describe for the string-registry process this compute dials.
- String
Register - Register hashed strings on the string-registry process(es).
- String
Registry Compact - Full-range compact on the string-registry process (no-op on memory).
- String
Registry Flush - Flush MemTables on the string-registry process (no-op on memory).
- String
Resolve - Resolve hashed strings for final output bindings (late materialization).
Functions§
- and_
fold - Rebuild
&&from conjuncts (Nonewhenpartsis empty). - applied_
default_ graph - The applied scope for a plain pattern at dataset scope (no
GRAPHblock): the query’s default window mapped exactly as the lowering maps it (RdfDefault→Some(DefaultGraph),AllGraphs→None,FROMwindows → their ground / allow shapes, plus the merge-default fixup). - assemble_
cluster_ snapshot - Assemble a snapshot: self without RPC, peers via Compute gRPC, storage via Describe.
- bind_
compute_ admin - Bind the compute gRPC listener. Failure is returned to the caller so process startup can abort before HTTP is served.
- classify
- Classify
expressionfor planning (early vs residual). - cors_
proxy_ base - Console proxy base advertised on every compute in a cluster snapshot.
- extension_
for_ format - File extension (no dot, no
.gz) to append when a snippet path has none. - flatten_
and - Flatten top-level
&&into conjuncts (cloned). - ground_
unique_ probe_ term - Plugin-rewrite surface of the private broadcast grounding: the one
ground term a plan binds to
variable, if the driver binds it uniquely. A plugin probe arm (e.g. the geo scan) pins this term into its op the same way [ground_and_recost_broadcasted_arm] grounds a Scan’s pattern slot. - http_
origin - Scheme and authority of an advertised HTTP URL (
http://host:port). - insert_
rdf_ file - Parse
pathand callinsertonce per chunk. - install_
process_ registry - Install the process-lifetime custom-function registry (first install wins).
- join_
rdf_ parser - Wait for the parser thread. A panic becomes
ComputeError::ParserThreadPanicked. - main_
repository_ info - Default repository list for Describe when the HTTP catalog is
mainonly. - mint_
provenance - Mint-provenance classification — see
Mints. Composition ismaxover children, the same discipline asclassify. - mint_
scope_ token - Fresh 16-character random token (~95 bits) for scope-internal names.
- note_
wire_ stream_ item - Count one delivered stream item of
rowsrows at the transport boundary. - now_
commit_ ts - Unix milliseconds, or
1if the clock is before the epoch. - pretty_
sparql - Indent compact SPARQL-syntax explain output (
optimised-sparql/planned-sparql) for human reading: one triple pattern or group element per line, two-space indent per{,;property lists continue on their own indented lines, and[...]blank-node property lists nest. - pretty_
sse - Indent compact Jena SSE for human reading.
- process_
registry - The process registry, initializing it to the builtins on first use so unit tests and early callers (before any engine exists) still see the 7 XSD casts.
- rdf_
format_ from_ name - Map a snippet/API format name (
turtle,ntriples, …) to [RdfFormat]. - rdf_
format_ from_ path - Guess RDF syntax from
path, including a trailing.gz. - rdf_
syntax_ name - Stable JSON label for a parsed RDF format (
"turtle","ntriples", …). - reset_
fetch_ once_ margin_ milli - Restore the default fetch-once trigger margin.
- reset_
fetch_ once_ matched_ bound_ equiv_ milli - Restore the default degenerate-matched-bound cost.
- reset_
fetch_ once_ matched_ row_ equiv_ milli - Restore the default matched-row cost.
- reset_
fetch_ once_ seek_ equiv_ milli - Restore the default fetch-once seek exchange rate.
- reset_
geo_ drain_ memo_ entry_ terms - Restore the default geo drain memo per-entry limit.
- reset_
geo_ drain_ memo_ total_ terms - Restore the default geo drain memo total budget.
- reset_
group_ fold_ batch - Restore the default fold batch size.
- reset_
max_ unary_ scan_ quads - Restore the default unary-scan ceiling.
- reset_
memo_ spill_ cells - Restore the default memo spill threshold.
- reset_
parallel_ probe_ pages - Restore the default batch-fill page ceiling.
- reset_
parallel_ pushdown_ wave_ max - Restore the default concurrent chunk-fetch wave ceiling.
- reset_
pushdown_ min_ pollution_ milli - Restore the default minimum over-threshold pollution.
- reset_
query_ fetch_ concurrency - Restore the environment-derived parallel-probe engine fetch
concurrency: the next
[
query_fetch_concurrency] read resolvesWARATAH_QUERY_FETCH_CONCURRENCY(or the default) again. The same ordering rule asset_query_fetch_concurrencyapplies: only before context construction, or after every live context is dropped. - reset_
residual_ resolve_ window - Restore default residual resolve window.
- reset_
scan_ batch - Restore the default scan batch size.
- scan_
page_ as_ wire_ frames - Re-frame one unary scan page as the frame sequence the
ScanPatternStreamprotocol speaks, so a unary-backed transport (the trait’s defaultHexastoreScan::scan_pattern_stream, and test doubles built on it) is indistinguishable from the partition’s walk: a COMPLETED walk’s terminal verdict never rides a data frame — the rows go out as one verdict-less frame and the verdict follows as one EMPTY terminal frame — while a limit stop (Limited) and an unpurchased verdict (None) stay on the single frame, exactly as the partition’s limit-stop flush does. Emitting the empty terminal frame here is deliberate: the consumer branches written for that shape (the driver funnel’s terminal-frame break, bounded drains’ last-frame-wins) must hold for every transport, not only the gRPC one. - schema_
summary_ limits - The two server maxima, for the route layer (
capswire field + limit clamping). - serve_
compute_ admin - Bind
addrand serveComputeHealth/Describe until the future is dropped. - serve_
compute_ admin_ incoming - Serve
ComputeHealth/Describe on an already-bound listener. - set_
fetch_ once_ margin_ milli - Override the fetch-once trigger margin, milli (1400 = 1.4×) (tests / tuning).
- set_
fetch_ once_ matched_ bound_ equiv_ milli - Override the degenerate-matched-bound cost, milli-rows per bound row
(tests / tuning). See
FETCH_ONCE_MATCHED_BOUND_EQUIV_MILLI. - set_
fetch_ once_ matched_ row_ equiv_ milli - Override the matched-row cost, milli-rows per matched row
(tests / tuning). See
FETCH_ONCE_MATCHED_ROW_EQUIV_MILLI. - set_
fetch_ once_ seek_ equiv_ milli - Override the fetch-once seek exchange rate, milli-rows per seek
(tests / tuning). See
FETCH_ONCE_SEEK_EQUIV_MILLIfor placement. - set_
geo_ drain_ memo_ entry_ terms - Override the geo drain memo per-entry limit (tests / tuning).
- set_
geo_ drain_ memo_ total_ terms - Override the geo drain memo total budget (tests / tuning).
- set_
group_ fold_ batch - Override the
GROUP BYexecutor’s fold batch size (tests / tuning). - set_
max_ unary_ scan_ quads - Override the proven-bound ceiling under which an unlimited scan still
uses the unary
ScanPatternRPC (tests / tuning).0forces every unlimited scan onto the streaming endpoint — unlikeset_scan_batch, zero is meaningful here, not degenerate. - set_
memo_ spill_ cells - Override the memo spill threshold in term cells (tests / tuning).
- set_
parallel_ probe_ pages - Override the batch-fill page ceiling (tests / tuning). At 1 every batch holds exactly one driver page and each page takes the per-page allow-list road’s own filtered fetch.
- set_
parallel_ pushdown_ wave_ max - Override the concurrent chunk-fetch wave ceiling (tests / tuning).
- set_
pushdown_ min_ pollution_ milli - Override the minimum over-threshold pollution for the parallel pushdown transport (tests / tuning).
- set_
query_ fetch_ concurrency - Override the configured parallel-probe engine fetch concurrency
(tests / tuning). Values above [
MAX_QUERY_FETCH_CONCURRENCY] clamp to it. The value persists for the rest of the process unless reset. - set_
residual_ resolve_ window - Override residual resolve window (tests / tuning).
- set_
scan_ batch - Override scan batch size used while filling
LIMIT/OFFSET(tests / tuning). - spawn_
rdf_ parser - Spawn a thread that parses
pathand sends quad batches. - split_
filter - Split a FILTER into early (encoded / maybe) and residual (always-resolve) parts.
- subtree_
hostable_ variables - Collect every variable
nodecan consume as a pushed allow-list key: the hosted-variable set behind [probe_scan_has_key] — the same push-transparent topology (Join / Union / LeftJoin / Filter / Extend / Slice / Distinct / Sort / Group / JoinGraphVar crossed; SubSelect, plugin children, Values, and the count nodes opaque) — gathered instead of probed, so the runtime push gate (PushGate::Hostable) consults one plan-time stamp instead of re-walking the subtree per driver page. A scan contributes its live slot variables (S/P/O and the graph slot), a custom op its declared outputs (the keyed regime consumes pushed values directly). See theJoinvariant’srhs_hostable_keysfield for the stamp’s contract. - take_
wire_ stream_ totals - Read-and-reset the wire counters:
(items, rows)observed since the previous call. - text_
probe_ memo_ entry_ terms - Per-entry admission limit (in terms) of the text CANDIDATE drain memo —
the point where a literal-mode probe’s drain window can be paid once
instead of per page. The text planner stamps it into
CustomOpCost::probe_memo_entry_rows. - text_
subject_ memo_ entry_ rows - Rows the text SUBJECT memo admits in one entry for the given row shape:
one interned id per subject, a second per graph term. The subject rewrite
stamps it into
CustomOpCost::probe_memo_entry_rows, so the cost model prices the drain once exactly when the runtime memo can hold the window.
Type Aliases§
- Quad
Page Stream - Storage-driven drain of one scan: pages of encoded quads until the
partition exhausts the prefix (or the request
limitrows have been emitted); anErritem terminates the stream. - Subject
RowStream - Streaming page of resolved
(subject, graph)rows. - Term
Page Stream - Streaming page of distinct candidate terms.