Expand description
String-registry process: the inverse StrHash → raw dictionary.
This crate serves the StringRegistry service (RegisterStrings,
ResolveStrings, FlushMemtables, CompactRange, Health, Describe) and nothing else — it
never serves hexastore RPCs, and hexastore partitions never serve these.
Compute writes hashed strings here on insert and reads them back only for
final output bindings (late materialization).
MVP runs one process holding either N in-process shards of
waratah_storage::ShardedRegistry or a RocksDB dictionary at
{data-dir}/{repository}/registry. Splitting those shards across several
registry processes (murmur3(StrHash) % N at the caller) is a later change
to routing, not to this RPC surface.
Structs§
- Blob
Store - Content-addressed blob store: index-backed or in-memory behind one
surface, so
RegistryServiceand callers are unaffected by the variant. - Blob
Verify Report - Result of
BlobStore::verify. - Registry
Identity - Process identity echoed by
Describe. - Registry
Service StringRegistryservice over an in-memory or RocksDB dictionary.- Tuning
Override - Restores one process-wide tuning slot to its default (
0) when dropped — including when the test panics, which a trailing reset call cannot cover. Two guards over different slots compose.
Enums§
- Registry
Error - Failure serving a
StringRegistryRPC.
Constants§
- DEFAULT_
SHARD_ COUNT - Number of in-process registry shards when none is configured.
- INLINE_
THRESHOLD_ BYTES - Largest payload stored inline in the blob index.
- MAX_
BLOB_ BYTES - Maximum size of one stored blob (64 MiB).
- MAX_
REGISTERED_ STRING_ BYTES - Maximum stored length of one registered string (IRI, literal lexical form, or big language tag), counted in UTF-8 bytes.
- RESOLVE_
FRAME_ BUDGET_ BYTES - Byte budget for one streamed
ResolveStringsframe (message). - SEGMENT_
HANDLE_ CACHE - Default number of segment files kept open for reads.
- SEGMENT_
TARGET_ BYTES - A segment rolls to the next file once its length reaches this target after an append.
Functions§
- bind
- Bind a listener for the registry process (port
0picks an ephemeral port). - serve
- Serve the
StringRegistryservice onincominguntil the future is dropped. - set_
segment_ handle_ cache - Override the segment handle-cache capacity for tests (eviction tests
need a tiny cache). Clamped to [
SEGMENT_HANDLE_CACHE_MAX]. The capacity is read once atBlobStore::open, so set it before opening. Process-wide; the returned guard restores the default when dropped. The slot treats0as “use the default” (the same value the guard stores), so passing0yieldsSEGMENT_HANDLE_CACHE, not an empty cache. - set_
segment_ target_ bytes - Override the segment roll target for tests (rollover tests need a
shrinkable segment). Process-wide; the returned guard restores the
default when dropped. Serialize against other tuning-sensitive tests
(the test module’s mutex) while an override is live. The slot treats
0as “use the default” (the same value the guard stores), so passing0is equivalent to no override.