pub struct PartitionService { /* private fields */ }Expand description
Hexastore service over one axis-local storage brick.
Implementations§
Source§impl PartitionService
impl PartitionService
Sourcepub fn new(storage: Storage) -> Self
pub fn new(storage: Storage) -> Self
Wrap an already-open storage brick with an in-memory stats store.
Sourcepub fn new_with_stats(storage: Storage, stats: ShardStats) -> Self
pub fn new_with_stats(storage: Storage, stats: ShardStats) -> Self
Wrap storage with an existing ShardStats holder.
Sourcepub fn memory(axis: PartitionAxis) -> Self
pub fn memory(axis: PartitionAxis) -> Self
In-memory partition for tests and lightweight local runs.
Sourcepub fn warm_block_cache(
&self,
fill_fraction: f64,
) -> Result<WarmBlockCacheStats, PartitionError>
pub fn warm_block_cache( &self, fill_fraction: f64, ) -> Result<WarmBlockCacheStats, PartitionError>
Warm this partition’s block cache (see
Storage::warm_block_cache); a no-op on the memory backend. Called
from the partition process when WARATAH_WARM_CACHE is set.
Sourcepub fn stats_handle(&self) -> &Mutex<ShardStats>
pub fn stats_handle(&self) -> &Mutex<ShardStats>
The shard stats holder (in-process clients / tests).
Sourcepub fn open_with_backend(
kind: StorageBackendKind,
path: impl AsRef<Path>,
axis: PartitionAxis,
) -> Result<Self, PartitionError>
pub fn open_with_backend( kind: StorageBackendKind, path: impl AsRef<Path>, axis: PartitionAxis, ) -> Result<Self, PartitionError>
Open with an explicit backend (dev mode selects memory for speed).
Sourcepub fn open_rocksdb(
path: impl AsRef<Path>,
axis: PartitionAxis,
options: RocksDbOpenOptions,
) -> Result<Self, PartitionError>
pub fn open_rocksdb( path: impl AsRef<Path>, axis: PartitionAxis, options: RocksDbOpenOptions, ) -> Result<Self, PartitionError>
Open a RocksDB partition with optional stats collector and auto-compaction.
Sourcepub fn axis(&self) -> PartitionAxis
pub fn axis(&self) -> PartitionAxis
Axis this process owns.
Sourcepub fn with_trace(self, enabled: bool) -> Self
pub fn with_trace(self, enabled: bool) -> Self
Enable (--trace) stderr timing lines for streamed scans.
Sourcepub fn with_identity(self, identity: NodeIdentity) -> Self
pub fn with_identity(self, identity: NodeIdentity) -> Self
Set the identity Describe reports (listen address, data dir, node id).
Sourcepub fn with_warm_state(self, warm: Arc<WarmState>) -> Self
pub fn with_warm_state(self, warm: Arc<WarmState>) -> Self
Hand in the startup cache-warm tracker. The Health RPC reports
warm_ready = false (plus the pending walk names) until every
tracked walk completes or outlives the tracker’s max wait.
Sourcepub fn identity(&self) -> &NodeIdentity
pub fn identity(&self) -> &NodeIdentity
Identity Describe reports.
Sourcepub fn apply_versions(
&self,
asserted_axis: Option<PartitionAxis>,
versions: &[QuadVersion],
) -> Result<u64, PartitionError>
pub fn apply_versions( &self, asserted_axis: Option<PartitionAxis>, versions: &[QuadVersion], ) -> Result<u64, PartitionError>
Apply versioned records to both axis-local indexes and observe stats.
asserted_axis of None skips the ownership check (the caller did not
name an axis); a named axis other than Self::axis is rejected.
Index keys for a multi-quad chunk are encoded before taking the storage
write lock. Catalog prefix seeks (S axis) run under that lock, then one
RocksDB WriteBatch commits hexastore puts and catalog puts together.
Chunks are at most WRITE_BATCH_MAX_QUADS.
Sourcepub fn list_named_graphs(
&self,
snapshot: SnapshotId,
) -> Result<Vec<EncodedTerm>, PartitionError>
pub fn list_named_graphs( &self, snapshot: SnapshotId, ) -> Result<Vec<EncodedTerm>, PartitionError>
S-axis named-graph catalog at snapshot (empty graphs included).
Sourcepub fn add_named_graph(
&self,
graph: &EncodedTerm,
commit_ts: CommitTs,
) -> Result<(), PartitionError>
pub fn add_named_graph( &self, graph: &EncodedTerm, commit_ts: CommitTs, ) -> Result<(), PartitionError>
Insert an empty named graph into the S-axis catalog.
Sourcepub fn scan(
&self,
permutation: Option<IndexPermutation>,
pattern: &EncodedTriplePattern,
snapshot: SnapshotId,
limit: u64,
) -> Result<Vec<EncodedQuad>, PartitionError>
pub fn scan( &self, permutation: Option<IndexPermutation>, pattern: &EncodedTriplePattern, snapshot: SnapshotId, limit: u64, ) -> Result<Vec<EncodedQuad>, PartitionError>
Scan a pattern as of snapshot, returning encoded columns only.
permutation of None lets the brick pick its longest-prefix
axis-local index; limit of 0 is unlimited.
When filter_slot + filter_terms are set (Phase 9b broadcast), each
filter term is bound into that slot and scanned; results are concatenated.
Sourcepub fn scan_runs_on_caller(
&self,
permutation: Option<IndexPermutation>,
pattern: &EncodedTriplePattern,
filter_slot: Option<PatternSlot>,
filter_terms: &[EncodedTerm],
) -> bool
pub fn scan_runs_on_caller( &self, permutation: Option<IndexPermutation>, pattern: &EncodedTriplePattern, filter_slot: Option<PatternSlot>, filter_terms: &[EncodedTerm], ) -> bool
Scan with an optional broadcast allow-list on one unbound slot.
start_after is exclusive. A single prefix scan resumes after that
logical quad. With filter_terms, results are concatenated in encoded
tight-prefix order (not caller allow-list order): terms whose prefix
sorts before the cursor’s slot value are skipped, the matching term’s
prefix resumes at start_after, and later terms start from the beginning
of their prefix. limit counts visible matching Puts after MVCC collapse.
filter_terms order does not matter; the same set plus start_after
is enough to resume. One filter term still uses a tight prefix iterator.
Two or more terms share one iterator and Seek to each prefix when the
filter slot extends the index prefix; otherwise each term is bound and
scanned separately.
graph_filter_terms is a residual G-slot block-list (allow = false,
the default) or allow-list (allow = true). Empty block-list blocks
nothing (pattern.graph_name still applies). Empty allow-list allows
nothing.
Scan-dispatch gate: may this scan run on the calling thread?
Used by every gated fetch shape — the unary scan_pattern round
trip, the streaming drain (scan_pattern_stream_frames),
CountPattern (a count drains the same prefix a scan does), and
predicate-keyed domain scans
(Self::domain_scan_runs_on_caller). True when the
partition’s stats upper bound
(ShardStats::exact_scan_rows) puts the pattern at or below
scan_dispatch_row_threshold rows AND the permutation-aware
slice rule is satisfied: the walked key range must be narrowed
past the leading block — on PSOG/POSG the slot after the
predicate, on TSG the class, on SPOG/SOPG/OPSG the leading
subject or object — each bound, or covered by a non-empty
sub-threshold allow-list on that slot; a request with no
explicit permutation dispatches. Paged unary requests follow the
same rule (a limit > 0 page bound only at the predicate
dispatches). The rule keeps delete churn in a whole leading block
(version keys far beyond the net-row estimate) off the calling
worker. Phase-1 estimate sources
(exact maps only): a bound named predicate’s row count, and — for
rdf:type — the class counts for a bound named class or an object
broadcast allow-list (summed with early exit at the threshold).
Patterns without a bound named predicate have no phase-1 basis and
always dispatch.
Dispatch-on-doubt: the gate returns false (dispatch) when the
sealed SST profile has not been loaded or is invalidated
(SstInvalidationFlags::sealed_stale — an empty sealed layer plus
a live write would otherwise read as an observed zero), when the
stats mutex is contended or poisoned (try_lock — the write path
holds that mutex across whole write chunks, and waiting would put
it back on the latency path this gate exists to shorten), or when
any allow-list term is not a named node (it could match rows the
named-class map never counts).
The gate is advisory for the thread choice only: the caller
executes the same scan_filtered either way and the rows are
identical.
Sourcepub fn domain_scan_runs_on_caller(
&self,
permutation: IndexPermutation,
constraints: &[EncodedTerm],
) -> bool
pub fn domain_scan_runs_on_caller( &self, permutation: IndexPermutation, constraints: &[EncodedTerm], ) -> bool
Domain-scan gate: may this domain scan run on the calling thread?
Same dispatch-on-doubt rules as Self::scan_runs_on_caller
(threshold disabled, sealed SST profile stale, stats mutex
contended or poisoned → dispatch), applied to the domain-scan
request shape: constraints are the slot-0 terms of
permutation.
Only predicate-keyed domain scans (Posg, the PredicateDomain
rewrite) have an exact estimate basis: the per-predicate row
counts, summed over the constraint list with early exit strictly
past the threshold (distinct heads under a constraint walk at
most that predicate’s rows). A constraint that is not a named
node has no exact-map entry and dispatches. Subject- and
object-keyed permutations have no per-term exact maps at all —
no basis, always dispatch. Advisory for the thread choice only;
both branches return identical hits.
Sourcepub fn scan_filtered(
&self,
permutation: Option<IndexPermutation>,
pattern: &EncodedTriplePattern,
snapshot: SnapshotId,
limit: u64,
filter_slot: Option<PatternSlot>,
filter_terms: &[EncodedTerm],
start_after: Option<&EncodedQuad>,
graph_filter_terms: &[EncodedTerm],
graph_filter_allow: bool,
merge_default_graph: bool,
iri_only: IriOnlyMask,
verdict_wanted: bool,
) -> Result<(Vec<EncodedQuad>, ScanExhaustion), PartitionError>
pub fn scan_filtered( &self, permutation: Option<IndexPermutation>, pattern: &EncodedTriplePattern, snapshot: SnapshotId, limit: u64, filter_slot: Option<PatternSlot>, filter_terms: &[EncodedTerm], start_after: Option<&EncodedQuad>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, merge_default_graph: bool, iri_only: IriOnlyMask, verdict_wanted: bool, ) -> Result<(Vec<EncodedQuad>, ScanExhaustion), PartitionError>
merge_default_graph is the SPARQL default-graph RDF merge: after graph
membership, keep the first visible S/P/O, skip later named graphs of
that triple (G is last in every index), and rewrite result G to
EncodedTerm::DefaultGraph. Exclusive start_after then means “skip
this whole triple”, not one logical quad. GRAPH scans must leave this
false so graph identity stays on the wire.
This is the decoded reference path: each matched row is decoded from
its raw key and collected into a Vec<EncodedQuad>, with the
default-graph merge applied after the decode. The RPC page walk is
Self::scan_filtered_packed; both share
Self::walk_filtered_rows’s branch selection and differ only in the
per-row sink. Returns the rows plus the walk’s own
ScanExhaustion verdict.
Sourcepub fn scan_filtered_packed(
&self,
permutation: Option<IndexPermutation>,
pattern: &EncodedTriplePattern,
snapshot: SnapshotId,
limit: u64,
filter_slot: Option<PatternSlot>,
filter_terms: &[EncodedTerm],
start_after: Option<&EncodedQuad>,
graph_filter_terms: &[EncodedTerm],
graph_filter_allow: bool,
merge_default_graph: bool,
iri_only: IriOnlyMask,
comparisons: &[SlotComparison],
omitted: u8,
verdict_wanted: bool,
) -> Result<ScanPatternResponse, PartitionError>
pub fn scan_filtered_packed( &self, permutation: Option<IndexPermutation>, pattern: &EncodedTriplePattern, snapshot: SnapshotId, limit: u64, filter_slot: Option<PatternSlot>, filter_terms: &[EncodedTerm], start_after: Option<&EncodedQuad>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, merge_default_graph: bool, iri_only: IriOnlyMask, comparisons: &[SlotComparison], omitted: u8, verdict_wanted: bool, ) -> Result<ScanPatternResponse, PartitionError>
The unary page walk with the packed sink: matched rows go into a
[FramePacker] with the request’s omitted_slots mask applied during
the copy — the same push_row the stream drain calls — and the page
returns ONE frame whose every field is a zero-copy slice of the packed
buffer. No EncodedTerm is ever constructed on this path: the mask
rides at the byte-copy layer, exactly as on the stream, and the Tsg
predicate and the default-graph merge are applied by wire_quad at
slice time instead of inside storage.
Paging is the decoded path’s, exactly: limit counts matched rows
after MVCC collapse and filtering, start_after is exclusive, and the
branch selection is Self::scan_filtered’s. One page per response;
the stream’s SCAN_STREAM_FRAME_ROWS flush threshold does not apply.
Sourcepub fn scan_filtered_streaming(
&self,
permutation: Option<IndexPermutation>,
pattern: &EncodedTriplePattern,
snapshot: SnapshotId,
filter_slot: Option<PatternSlot>,
filter_terms: &[EncodedTerm],
start_after: Option<&EncodedQuad>,
graph_filter_terms: &[EncodedTerm],
graph_filter_allow: bool,
merge_default_graph: bool,
iri_only: IriOnlyMask,
comparisons: &[SlotComparison],
emit: impl FnMut(&KeyRow<'_>) -> bool,
) -> Result<ScanExhaustion, PartitionError>
pub fn scan_filtered_streaming( &self, permutation: Option<IndexPermutation>, pattern: &EncodedTriplePattern, snapshot: SnapshotId, filter_slot: Option<PatternSlot>, filter_terms: &[EncodedTerm], start_after: Option<&EncodedQuad>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, merge_default_graph: bool, iri_only: IriOnlyMask, comparisons: &[SlotComparison], emit: impl FnMut(&KeyRow<'_>) -> bool, ) -> Result<ScanExhaustion, PartitionError>
Stream every visible matching row to emit in ONE continuous index
walk — no storage-side paging, no lock held (reads are lock-free; see
Self::storage). emit receives a raw KeyRow (key-buffer
slices, no decoded terms) and returns false to stop the walk early
(limit satisfied / consumer gone); the return value is the walk’s
ScanExhaustion verdict — a terminal value
(ExhaustedFilterTerms/ExhaustedScan) when the walk ran to
completion, Limited when emit stopped it.
Plain patterns (the eager drain’s hot path) walk a single iterator
through the storage-side RowMatcher: residual G membership, the
exclusive start_after whole-triple cursor, and merge_default_graph
collapse run per row on raw key bytes — semantics match unary paging
row for row, and no EncodedTerm is ever constructed. Broadcast
filter shapes run the same raw row walks (multi-seek over the
allow-listed tight prefixes, or one bound-pattern walk per term) —
every branch emits raw KeyRow slices and constructs no terms on
any branch.
Sourcepub fn scan_pattern_stream_frames(
&self,
permutation: Option<IndexPermutation>,
pattern: EncodedTriplePattern,
snapshot: SnapshotId,
limit: u64,
filter_slot: Option<PatternSlot>,
filter_terms: Vec<EncodedTerm>,
start_after: Option<EncodedQuad>,
graph_filter_terms: Vec<EncodedTerm>,
graph_filter_allow: bool,
merge_default_graph: bool,
iri_only: IriOnlyMask,
comparisons: Vec<SlotComparison>,
omitted: u8,
verdict_wanted: bool,
) -> Pin<Box<dyn Stream<Item = Result<ScanPatternResponse, Status>> + Send>>
pub fn scan_pattern_stream_frames( &self, permutation: Option<IndexPermutation>, pattern: EncodedTriplePattern, snapshot: SnapshotId, limit: u64, filter_slot: Option<PatternSlot>, filter_terms: Vec<EncodedTerm>, start_after: Option<EncodedQuad>, graph_filter_terms: Vec<EncodedTerm>, graph_filter_allow: bool, merge_default_graph: bool, iri_only: IriOnlyMask, comparisons: Vec<SlotComparison>, omitted: u8, verdict_wanted: bool, ) -> Pin<Box<dyn Stream<Item = Result<ScanPatternResponse, Status>> + Send>>
Frame stream for a decoded ScanPatternStream request — the transport
behind the tonic handler, shared with the in-process clients so both
deployments run the identical streaming drain.
The walk runs on ONE task for the whole prefix
(scan_filtered_streaming), packing rows into
SCAN_STREAM_FRAME_ROWS frames; the stream closes on prefix
exhaustion (exhausted), after the request’s limit rows
(limit), or when the consumer drops it (client-dropped).
Dispatch: the exact-stats gate
(Self::scan_runs_on_caller, SCAN_DISPATCH_ROW_THRESHOLD) picks
the thread. A drain estimated at or below the threshold runs the
whole walk on the calling worker and returns the frames as an
already-collected stream — a µs-scale seek-to-EOF must not pay the
blocking-pool wake (its CFS wakeup delay is the measured ~600 µs
small-query stall). Larger or unestimable drains get the blocking
task plus bounded channel below, unchanged. Frames, ordering, and
error items are identical either way.
Sourcepub fn scan_domain(
&self,
permutation: IndexPermutation,
constraints: &[EncodedTerm],
snapshot: SnapshotId,
limit: u64,
start_after_constraint: Option<&EncodedTerm>,
start_after_term: Option<&EncodedTerm>,
graph_name: Option<&EncodedTerm>,
graph_filter_terms: &[EncodedTerm],
graph_filter_allow: bool,
iri_only_head: bool,
) -> Result<Vec<DomainScanHit>, PartitionError>
pub fn scan_domain( &self, permutation: IndexPermutation, constraints: &[EncodedTerm], snapshot: SnapshotId, limit: u64, start_after_constraint: Option<&EncodedTerm>, start_after_term: Option<&EncodedTerm>, graph_name: Option<&EncodedTerm>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, iri_only_head: bool, ) -> Result<Vec<DomainScanHit>, PartitionError>
Domain scan: distinct slot-1 head terms under each slot-0 constraint
of permutation.
Sourcepub fn scan_domain_counts(
&self,
permutation: IndexPermutation,
constraints: &[EncodedTerm],
snapshot: SnapshotId,
limit: u64,
start_after_constraint: Option<&EncodedTerm>,
start_after_term: Option<&EncodedTerm>,
graph_name: Option<&EncodedTerm>,
graph_filter_terms: &[EncodedTerm],
graph_filter_allow: bool,
iri_only_head: bool,
merge_default_graph: bool,
mode: DomainCountMode,
) -> Result<Vec<DomainScanCountHit>, PartitionError>
pub fn scan_domain_counts( &self, permutation: IndexPermutation, constraints: &[EncodedTerm], snapshot: SnapshotId, limit: u64, start_after_constraint: Option<&EncodedTerm>, start_after_term: Option<&EncodedTerm>, graph_name: Option<&EncodedTerm>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, iri_only_head: bool, merge_default_graph: bool, mode: DomainCountMode, ) -> Result<Vec<DomainScanCountHit>, PartitionError>
Domain count scan: run lengths of slot-1 head terms under each
slot-0 constraint of permutation, per mode. DistinctGraphs is
incompatible with merge_default_graph (merge collapses G) and is
rejected as invalid argument.
Sourcepub fn scan_axis_head(
&self,
permutation: IndexPermutation,
snapshot: SnapshotId,
limit: u64,
start_after_term: Option<&EncodedTerm>,
graph_name: Option<&EncodedTerm>,
graph_filter_terms: &[EncodedTerm],
graph_filter_allow: bool,
iri_only_head: bool,
head_prefixes: &[Vec<u8>],
) -> Result<Vec<EncodedTerm>, PartitionError>
pub fn scan_axis_head( &self, permutation: IndexPermutation, snapshot: SnapshotId, limit: u64, start_after_term: Option<&EncodedTerm>, graph_name: Option<&EncodedTerm>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, iri_only_head: bool, head_prefixes: &[Vec<u8>], ) -> Result<Vec<EncodedTerm>, PartitionError>
Axis head scan: distinct slot-0 head terms of the whole permutation
CF. head_prefixes are opaque seek-union byte ranges (empty =
unfiltered); the partition never interprets them.
Sourcepub fn axis_head_max_commit_ts(
&self,
permutation: IndexPermutation,
head_prefixes: &[Vec<u8>],
) -> Result<u64, PartitionError>
pub fn axis_head_max_commit_ts( &self, permutation: IndexPermutation, head_prefixes: &[Vec<u8>], ) -> Result<u64, PartitionError>
Max commit_ts among the versioned keys whose slot-0 head term falls
under head_prefixes (geo upgrade stage 1: the swap-timestamp bound,
derived from the walked data itself — a freshly opened process’s
counter is 0 and says nothing about rows written by earlier
processes, and the wall clock may have drifted since they landed).
Sourcepub fn count_axis_heads(
&self,
permutation: IndexPermutation,
snapshot: SnapshotId,
graph_name: Option<&EncodedTerm>,
graph_filter_terms: &[EncodedTerm],
graph_filter_allow: bool,
iri_only_head: bool,
) -> Result<u64, PartitionError>
pub fn count_axis_heads( &self, permutation: IndexPermutation, snapshot: SnapshotId, graph_name: Option<&EncodedTerm>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, iri_only_head: bool, ) -> Result<u64, PartitionError>
Axis head count, TOTAL mode: distinct slot-0 head terms of the
whole permutation CF.
Sourcepub fn scan_axis_head_counts(
&self,
permutation: IndexPermutation,
snapshot: SnapshotId,
limit: u64,
start_after_term: Option<&EncodedTerm>,
graph_name: Option<&EncodedTerm>,
graph_filter_terms: &[EncodedTerm],
graph_filter_allow: bool,
iri_only_head: bool,
) -> Result<Vec<AxisHeadCountHit>, PartitionError>
pub fn scan_axis_head_counts( &self, permutation: IndexPermutation, snapshot: SnapshotId, limit: u64, start_after_term: Option<&EncodedTerm>, graph_name: Option<&EncodedTerm>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, iri_only_head: bool, ) -> Result<Vec<AxisHeadCountHit>, PartitionError>
Axis head count, PER_HEAD mode: per-head distinct slot-1 counts.
Sourcepub fn count_filtered(
&self,
permutation: Option<IndexPermutation>,
pattern: &EncodedTriplePattern,
snapshot: SnapshotId,
limit: u64,
filter_slot: Option<PatternSlot>,
filter_terms: &[EncodedTerm],
graph_filter_terms: &[EncodedTerm],
graph_filter_allow: bool,
merge_default_graph: bool,
) -> Result<u64, PartitionError>
pub fn count_filtered( &self, permutation: Option<IndexPermutation>, pattern: &EncodedTriplePattern, snapshot: SnapshotId, limit: u64, filter_slot: Option<PatternSlot>, filter_terms: &[EncodedTerm], graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, merge_default_graph: bool, ) -> Result<u64, PartitionError>
Count matching quads as of snapshot without returning rows.
Same pattern / permutation / broadcast-filter rules as Self::scan_filtered.
limit of 0 is unlimited; a positive limit stops once that many matches
have been counted.
Sourcepub fn count_filtered_on_caller(
&self,
permutation: Option<IndexPermutation>,
pattern: &EncodedTriplePattern,
snapshot: SnapshotId,
limit: u64,
filter_slot: Option<PatternSlot>,
filter_terms: &[EncodedTerm],
graph_filter_terms: &[EncodedTerm],
graph_filter_allow: bool,
merge_default_graph: bool,
) -> Result<u64, PartitionError>
pub fn count_filtered_on_caller( &self, permutation: Option<IndexPermutation>, pattern: &EncodedTriplePattern, snapshot: SnapshotId, limit: u64, filter_slot: Option<PatternSlot>, filter_terms: &[EncodedTerm], graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, merge_default_graph: bool, ) -> Result<u64, PartitionError>
Self::count_filtered with the parallel count walk force-disabled:
the dispatch gate’s on-caller path serves counts its exact stats
judge µs-scale, where the worker-pool wake would outweigh the walk.
The storage-side WARATAH_COUNT_WALKS knob stays authoritative for
the dispatched path.
Sourcepub fn apply_geo(&self, puts: &[GeoIndexPut]) -> Result<u64, PartitionError>
pub fn apply_geo(&self, puts: &[GeoIndexPut]) -> Result<u64, PartitionError>
Flush MemTables to SST files. Stats rotation is handled by the event listener. Apply geometry-index postings (O axis only; apply-only, verbatim).
The partition NEVER derives S2 cells here and never reads blobs — postings are exactly what compute sent (cell id, term bytes, MVCC metadata, optional CRS84 envelope).
Sourcepub fn delete_geo_term(&self, term: &[u8]) -> Result<u64, PartitionError>
pub fn delete_geo_term(&self, term: &[u8]) -> Result<u64, PartitionError>
Delete every posting of one encoded geo term (O axis; rebuild).
Sourcepub fn apply_replaces(
&self,
pairs: &[ReplacePair],
commit_ts: CommitTs,
) -> Result<u64, PartitionError>
pub fn apply_replaces( &self, pairs: &[ReplacePair], commit_ts: CommitTs, ) -> Result<u64, PartitionError>
Apply replace pairs as ONE batch on this axis (the migration primitive; served by every axis).
Sourcepub fn begin_geo_rebuild(&self) -> Result<Option<u64>, PartitionError>
pub fn begin_geo_rebuild(&self) -> Result<Option<u64>, PartitionError>
Begin the geo index rebuild: take the rebuild lease (free, or
expired-stale takeover) and wipe the whole geo_index CF. Ok(true)
= this caller holds the lease and owns the walk; Ok(false) = a
fresh lease is held elsewhere (wait on Describe). O axis only.
Sourcepub fn renew_geo_rebuild_lease(&self) -> Result<(), PartitionError>
pub fn renew_geo_rebuild_lease(&self) -> Result<(), PartitionError>
Refresh the held lease’s deadline (the driver calls this per batch; a driver that stalls past the deadline loses the lease to takeover).
Sourcepub fn finish_geo_rebuild(&self) -> Result<u64, PartitionError>
pub fn finish_geo_rebuild(&self) -> Result<u64, PartitionError>
Finish the geo index rebuild: stamp epoch = max(previous epoch number, max commit_ts observed on this partition) (equal, never +1)
and release the lease. The previous-epoch floor keeps a rebuild that
wrote nothing counter-visible (no orphans; postings only) in a
freshly opened process from regressing the epoch to 0 over data at
higher ts. Rejected unless the caller holds a fresh lease.
Validate, stamp, and release under ONE hold of the lease mutex.
Releasing before the stamp opened a window where a peer’s
begin_geo_rebuild could take the free lease and wipe the index
BEFORE our stamp landed — a stamped epoch over a cleared index, and
a peer walk re-covering a store while the finish still believed it
owned the lease (same shape as the text finish). The release happens
on the error paths too — a failed stamp must not pin the lease for
the rest of its duration.
Sourcepub fn geo_rebuild_in_progress(&self) -> bool
pub fn geo_rebuild_in_progress(&self) -> bool
Whether a FRESH geo rebuild lease is held (a stale lease reports false — takeover allowed).
Sourcepub fn text_index_fingerprint(&self) -> Result<Option<String>, PartitionError>
pub fn text_index_fingerprint(&self) -> Result<Option<String>, PartitionError>
The fingerprint the index on this partition was built with, if any.
Reads the in-memory handle when open, else the sidecar; None means
the partition has no text index at all.
Sourcepub fn with_text_self_create(self, options: Option<TextIndexOptions>) -> Self
pub fn with_text_self_create(self, options: Option<TextIndexOptions>) -> Self
Configure the text config a PutTextIndex may self-create the index
with when no sidecar exists (the launcher passes it for the O axis
when the plugin is enabled).
Sourcepub fn apply_text(&self, docs: &[TextIndexDoc]) -> Result<u64, PartitionError>
pub fn apply_text(&self, docs: &[TextIndexDoc]) -> Result<u64, PartitionError>
Apply text-index documents (O axis only, applied verbatim).
Called by compute BEFORE the three axis InsertQuads calls: a visible
row therefore never lacks its document. The Tantivy commit and the
reader reload happen here, before the acknowledgement, so a later
query on this process cannot miss the document.
A fresh WIPE rebuild lease fences puts: the wiping build is about to delete every document, and a put committed in that window would be deleted before its row lands, breaking invariant A (the walk’s exclusive cursor would never re-derive the row’s document). The rejection maps to a transient status, but the standard retry budget (milliseconds) is far shorter than any wipe — in practice the insert FAILS LOUDLY and the load is rerun (documents are idempotent); C3’s document-before-row order holds again once the rebuild finishes. An ADDITIVE (live-repair) lease does not fence: it exists precisely so in-progress writes keep landing documents.
Sourcepub fn text_candidates(
&self,
request: &TextSearchRequest,
) -> Result<Vec<Vec<u8>>, PartitionError>
pub fn text_candidates( &self, request: &TextSearchRequest, ) -> Result<Vec<Vec<u8>>, PartitionError>
Drain one text candidate request (O axis only).
Returns distinct encoded terms. NotBuilt is an error rather than an
empty set: returning zero rows from an index that does not exist is the
trusted-but-empty state the plugin forbids. Reads never SELF-CREATE:
only a put may bring the index into existence (invariant A is about
writes), and every candidate scan is plan-gated on a trusted index
whose sidecar ensure_text_open can adopt.
Sourcepub fn begin_text_rebuild(
&self,
options: &TextIndexOptions,
wipe: bool,
) -> Result<Option<u64>, PartitionError>
pub fn begin_text_rebuild( &self, options: &TextIndexOptions, wipe: bool, ) -> Result<Option<u64>, PartitionError>
Begin the text index rebuild: refuse a config that does not match the
stored index, then take the lease (free, or expired-stale takeover)
and open-or-create the directory. Ok(Some(token)) = this caller
holds the lease and owns the walk; every renew / finish must carry
the token, so a driver that lost its lease (expired and taken over,
or a partition restart) can neither release nor stamp. Ok(None) = a
fresh lease is held elsewhere.
wipe mirrors the caller’s situation, not a preference: a startup
build wipes because nothing is serving, and a repair build does not
because an in-progress write’s document may describe a row the walk
cannot see yet. A WIPE lease fences PutTextIndex until it is
released (see Self::apply_text); an additive lease does not.
Sourcepub fn renew_text_rebuild_lease(&self, token: u64) -> Result<(), PartitionError>
pub fn renew_text_rebuild_lease(&self, token: u64) -> Result<(), PartitionError>
Refresh the held text rebuild lease’s deadline. Rejected unless
token identifies the current FRESH lease: an expired lease means a
takeover is possible, so the stale driver must stop renewing.
Sourcepub fn finish_text_rebuild(
&self,
token: u64,
stamp: bool,
) -> Result<u64, PartitionError>
pub fn finish_text_rebuild( &self, token: u64, stamp: bool, ) -> Result<u64, PartitionError>
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 token identifies the current FRESH lease.
stamp = false releases without stamping: an import that failed, or
a walk that skipped unresolved lexicals, must not mark the index
built; the index stays untrusted and the next start rebuilds.
Sourcepub fn text_seed_sketch_frame(&self) -> Option<TextSeedSketch>
pub fn text_seed_sketch_frame(&self) -> Option<TextSeedSketch>
The persisted seed sketch, None when absent (not the O axis, no
index, no sidecar, or undecodable). Served wire-trimmed by both the
gRPC frame and the standalone in-process client.
Sourcepub fn text_rebuild_in_progress(&self) -> bool
pub fn text_rebuild_in_progress(&self) -> bool
Whether a FRESH text rebuild lease is held.
Sourcepub fn apply_temporal(
&self,
puts: &[TemporalIndexPut],
) -> Result<u64, PartitionError>
pub fn apply_temporal( &self, puts: &[TemporalIndexPut], ) -> Result<u64, PartitionError>
Apply temporal-index postings (O axis) and observe the Put postings into the shard’s temporal histogram (same advisory-stats overlay as the hexastore observers; deletes do not observe — the histogram is Put-only by contract).
Sourcepub fn rebuild_temporal_index(
&self,
config: DyadicCovererConfig,
) -> Result<bool, PartitionError>
pub fn rebuild_temporal_index( &self, config: DyadicCovererConfig, ) -> Result<bool, PartitionError>
Execute the O-axis temporal index rebuild under the rebuild lock.
Ok(true) = this call ran the rebuild; Ok(false) = another rebuild
is in progress (caller polls Describe). The walk: wipe the index CF,
collect the per-quad-live temporal terms over the leading O
permutation (a term stays when ANY referencing quad’s own-latest
version is a Put — deletes are never mirrored to postings, so this
walk after the wipe is the GC of dead terms), derive postings under
the requested coverer config, apply them, stamp
epoch = max commit_ts over temporal-carrying rows (equal, never +1
— the epoch derives from the indexed data), and leave the histogram
to the observe replay that already ran through apply_temporal.
Sourcepub fn temporal_candidate_frames(
&self,
intervals: Vec<TemporalCellInterval>,
snapshot: SnapshotId,
predicate: TemporalQueryPredicate,
limit: u64,
) -> ReceiverStream<Result<TemporalCandidateScanResponse, Status>>
pub fn temporal_candidate_frames( &self, intervals: Vec<TemporalCellInterval>, snapshot: SnapshotId, predicate: TemporalQueryPredicate, limit: u64, ) -> ReceiverStream<Result<TemporalCandidateScanResponse, Status>>
Frame stream for a decoded TemporalCandidateScan request — the
transport behind the tonic handler, shared with in-process clients.
ONE blocking task drains the merged key-interval walk (skip-seek
union with a fresh TemporalCandidateState) and packs distinct
candidate terms into SCAN_STREAM_FRAME_ROWS frames. This RPC is
never cursor-paged: a second iterator would start a new seen-set and
re-emit terms under several covering nodes.
Sourcepub fn geo_candidate_frames(
&self,
intervals: Vec<GeoCellInterval>,
snapshot: SnapshotId,
query_envelope: Option<GeoEnvelope>,
limit: u64,
) -> ReceiverStream<Result<GeoCandidateScanResponse, Status>>
pub fn geo_candidate_frames( &self, intervals: Vec<GeoCellInterval>, snapshot: SnapshotId, query_envelope: Option<GeoEnvelope>, limit: u64, ) -> ReceiverStream<Result<GeoCandidateScanResponse, Status>>
Frame stream for a decoded GeoCandidateScan request — the transport
behind the tonic handler, shared with in-process clients.
ONE blocking task drains the merged cell-interval walk (skip-seek
union with a fresh GeoCandidateState) and packs distinct candidate
terms into SCAN_STREAM_FRAME_ROWS frames. This RPC is never
cursor-paged: a second iterator would start a new seen-set and re-emit
geometries under several covering cells.
Sourcepub fn text_candidate_frames(
&self,
request: TextSearchRequest,
snapshot: SnapshotId,
) -> ReceiverStream<Result<TextCandidateScanResponse, Status>>
pub fn text_candidate_frames( &self, request: TextSearchRequest, snapshot: SnapshotId, ) -> ReceiverStream<Result<TextCandidateScanResponse, Status>>
Stream one text candidate drain in frame-sized batches.
The drain itself is a single index search (the collector dedups by term), so the frames only bound the message size; unlike the scan RPCs there is no cursor, and a second call recomputes the same set.
Sourcepub fn text_subject_row_to_proto(row: &TextSubjectRow) -> TextSubjectRow
pub fn text_subject_row_to_proto(row: &TextSubjectRow) -> TextSubjectRow
Encode one resolved row for the wire.
graph presence, not length, carries the “column requested” fact: the
RDF default graph’s encoded term is zero bytes, so Some(empty) is a
real graph and must not collapse to “not requested”.
Sourcepub fn resolve_text_subjects(
&self,
request: &TextSubjectRequest,
snapshot: SnapshotId,
emit: &mut dyn FnMut(&[TextSubjectRow]) -> Result<bool, PartitionError>,
) -> Result<(), PartitionError>
pub fn resolve_text_subjects( &self, request: &TextSubjectRequest, snapshot: SnapshotId, emit: &mut dyn FnMut(&[TextSubjectRow]) -> Result<bool, PartitionError>, ) -> Result<(), PartitionError>
Resolve one text subject scan: run one search for the request’s whole
predicate set (a single OR over the stored predicate), walk OPSG for the
matched literals at snapshot, and hand DISTINCT (subject, graph) rows
to emit in pages while the walk runs.
STREAMING CONTRACT: pages leave as they are produced, so peak memory is
one page plus the dedup set rather than the whole answer. emit
returning false means the consumer is gone: the walk stops at the
next page boundary and this returns Ok(()). An Err ends the stream
after some rows may already be delivered — a consumer must treat the
error as fatal and discard everything received.
The guard counts distinct rows and ERRORS when exceeded, never
truncates: a dropped subject is a dropped row for text:query’s
subject form, which has no residual. It also bounds the dedup set at
limit + 1 entries; with limit == 0 the set is the answer size
(there is no seen-set spill yet). The graph column is present only
when the request asks for it; dedup then keys on (subject, graph) so a
subject matched in several graphs stays distinct where the query binds
the graph variable.
Sourcepub fn text_subject_frames(
&self,
request: TextSubjectRequest,
snapshot: SnapshotId,
) -> ReceiverStream<Result<TextSubjectScanResponse, Status>>
pub fn text_subject_frames( &self, request: TextSubjectRequest, snapshot: SnapshotId, ) -> ReceiverStream<Result<TextSubjectScanResponse, Status>>
Stream one subject resolve as framed (subject, graph) pages.
The resolve sends each 8,192-row page as it is produced: one blocking walk behind a bounded frame channel. The first rows reach the consumer before the walk ends, and a cancelled consumer stops the walk at the next page boundary instead of letting it run to completion.
Sourcepub fn flush_memtables(&self) -> Result<(), PartitionError>
pub fn flush_memtables(&self) -> Result<(), PartitionError>
Flush this partition’s MemTables to SSTables.
Sourcepub fn shard_profile(&self) -> Result<StatsProfile, PartitionError>
pub fn shard_profile(&self) -> Result<StatsProfile, PartitionError>
Merged shard-level statistical profile (sealed ⊕ flushing ⊕ open).
Reloads live SST waratah.stats blobs only when the cache is stale.
A flush-absorbed reload drops flushing, not open.
Sourcepub fn compact_range(&self) -> Result<(), PartitionError>
pub fn compact_range(&self) -> Result<(), PartitionError>
Compact both axis-local column families (synchronous full-range compact).
Sourcepub fn open_total_puts(&self) -> Result<u64, PartitionError>
pub fn open_total_puts(&self) -> Result<u64, PartitionError>
Write-path (open) put count, before any SST overlay.
Sourcepub fn compaction_event_count(&self) -> u64
pub fn compaction_event_count(&self) -> u64
Listener-observed compaction completions (no mutex).
Sourcepub fn flush_event_count(&self) -> u64
pub fn flush_event_count(&self) -> u64
Listener-observed flush completions (no mutex).
Sourcepub fn describe(&self) -> HexastoreDescribeResponse
pub fn describe(&self) -> HexastoreDescribeResponse
Identity + LSM snapshot for Describe.
Trait Implementations§
Source§impl Clone for PartitionService
impl Clone for PartitionService
Source§fn clone(&self) -> PartitionService
fn clone(&self) -> PartitionService
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PartitionService
impl Debug for PartitionService
Source§impl Hexastore for PartitionService
impl Hexastore for PartitionService
Source§fn scan_pattern_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<ScanPatternRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ScanPatternStreamStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn scan_pattern_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<ScanPatternRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ScanPatternStreamStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Storage-driven drain of a prefix as continuous frames.
Unlike Self::scan_pattern (compute-driven: one request carries the
exact page it needs), the partition here streams every matching row as
it is walked — ONE iterator for the whole prefix, no storage-side page
boundaries, no locks held — until the prefix is exhausted, the
request’s limit rows have been emitted, or the consumer drops the
stream. Residual G membership, merge_default_graph whole-triple cursors,
and MVCC snapshot visibility match unary paging exactly (same row
pipeline, per row). See Self::scan_pattern_stream_frames.
Source§type ScanPatternStreamStream = Pin<Box<dyn Stream<Item = Result<ScanPatternResponse, Status>> + Send>>
type ScanPatternStreamStream = Pin<Box<dyn Stream<Item = Result<ScanPatternResponse, Status>> + Send>>
Source§type GeoCandidateScanStream = ReceiverStream<Result<GeoCandidateScanResponse, Status>>
type GeoCandidateScanStream = ReceiverStream<Result<GeoCandidateScanResponse, Status>>
Source§type TemporalCandidateScanStream = ReceiverStream<Result<TemporalCandidateScanResponse, Status>>
type TemporalCandidateScanStream = ReceiverStream<Result<TemporalCandidateScanResponse, Status>>
Source§type TextCandidateScanStream = ReceiverStream<Result<TextCandidateScanResponse, Status>>
type TextCandidateScanStream = ReceiverStream<Result<TextCandidateScanResponse, Status>>
Source§type TextSubjectScanStream = ReceiverStream<Result<TextSubjectScanResponse, Status>>
type TextSubjectScanStream = ReceiverStream<Result<TextSubjectScanResponse, Status>>
fn insert_quads<'life0, 'async_trait>(
&'life0 self,
request: Request<InsertQuadsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<InsertQuadsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn replace_quads<'life0, 'async_trait>(
&'life0 self,
request: Request<ReplaceQuadsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ReplaceQuadsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn replace_quads<'life0, 'async_trait>(
&'life0 self,
request: Request<ReplaceQuadsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ReplaceQuadsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn scan_pattern<'life0, 'async_trait>(
&'life0 self,
request: Request<ScanPatternRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ScanPatternResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn count_pattern<'life0, 'async_trait>(
&'life0 self,
request: Request<ScanPatternRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CountPatternResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn domain_scan<'life0, 'async_trait>(
&'life0 self,
request: Request<DomainScanRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DomainScanResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn domain_scan_counts<'life0, 'async_trait>(
&'life0 self,
request: Request<DomainScanCountRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DomainScanCountResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn axis_head_scan<'life0, 'async_trait>(
&'life0 self,
request: Request<AxisHeadScanRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AxisHeadScanResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn axis_head_max_commit_ts<'life0, 'async_trait>(
&'life0 self,
request: Request<AxisHeadMaxCommitTsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AxisHeadMaxCommitTsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn axis_head_max_commit_ts<'life0, 'async_trait>(
&'life0 self,
request: Request<AxisHeadMaxCommitTsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AxisHeadMaxCommitTsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn axis_head_scan_counts<'life0, 'async_trait>(
&'life0 self,
request: Request<AxisHeadScanCountsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AxisHeadScanCountsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn put_geo_index<'life0, 'async_trait>(
&'life0 self,
request: Request<PutGeoIndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutGeoIndexResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put_geo_index<'life0, 'async_trait>(
&'life0 self,
request: Request<PutGeoIndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutGeoIndexResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn delete_geo_term<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteGeoTermRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteGeoTermResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_geo_term<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteGeoTermRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteGeoTermResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn geo_candidate_scan<'life0, 'async_trait>(
&'life0 self,
request: Request<GeoCandidateScanRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::GeoCandidateScanStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn geo_candidate_scan<'life0, 'async_trait>(
&'life0 self,
request: Request<GeoCandidateScanRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::GeoCandidateScanStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn put_temporal_index<'life0, 'async_trait>(
&'life0 self,
request: Request<PutTemporalIndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutTemporalIndexResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put_temporal_index<'life0, 'async_trait>(
&'life0 self,
request: Request<PutTemporalIndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutTemporalIndexResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn temporal_candidate_scan<'life0, 'async_trait>(
&'life0 self,
request: Request<TemporalCandidateScanRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::TemporalCandidateScanStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn temporal_candidate_scan<'life0, 'async_trait>(
&'life0 self,
request: Request<TemporalCandidateScanRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::TemporalCandidateScanStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn rebuild_temporal_index<'life0, 'async_trait>(
&'life0 self,
request: Request<RebuildTemporalIndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RebuildTemporalIndexResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn rebuild_temporal_index<'life0, 'async_trait>(
&'life0 self,
request: Request<RebuildTemporalIndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RebuildTemporalIndexResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn rebuild_geo_index<'life0, 'async_trait>(
&'life0 self,
_request: Request<RebuildGeoIndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RebuildGeoIndexResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn rebuild_geo_index<'life0, 'async_trait>(
&'life0 self,
_request: Request<RebuildGeoIndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RebuildGeoIndexResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn renew_geo_rebuild_lease<'life0, 'async_trait>(
&'life0 self,
_request: Request<RenewGeoRebuildLeaseRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RenewGeoRebuildLeaseResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn renew_geo_rebuild_lease<'life0, 'async_trait>(
&'life0 self,
_request: Request<RenewGeoRebuildLeaseRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RenewGeoRebuildLeaseResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn finish_geo_index_rebuild<'life0, 'async_trait>(
&'life0 self,
_request: Request<FinishGeoIndexRebuildRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FinishGeoIndexRebuildResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn finish_geo_index_rebuild<'life0, 'async_trait>(
&'life0 self,
_request: Request<FinishGeoIndexRebuildRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FinishGeoIndexRebuildResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn put_text_index<'life0, 'async_trait>(
&'life0 self,
request: Request<PutTextIndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutTextIndexResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put_text_index<'life0, 'async_trait>(
&'life0 self,
request: Request<PutTextIndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutTextIndexResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn text_candidate_scan<'life0, 'async_trait>(
&'life0 self,
request: Request<TextCandidateScanRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::TextCandidateScanStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn text_candidate_scan<'life0, 'async_trait>(
&'life0 self,
request: Request<TextCandidateScanRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::TextCandidateScanStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn text_subject_scan<'life0, 'async_trait>(
&'life0 self,
request: Request<TextSubjectScanRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::TextSubjectScanStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn text_subject_scan<'life0, 'async_trait>(
&'life0 self,
request: Request<TextSubjectScanRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::TextSubjectScanStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn rebuild_text_index<'life0, 'async_trait>(
&'life0 self,
request: Request<RebuildTextIndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RebuildTextIndexResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn rebuild_text_index<'life0, 'async_trait>(
&'life0 self,
request: Request<RebuildTextIndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RebuildTextIndexResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn renew_text_rebuild_lease<'life0, 'async_trait>(
&'life0 self,
request: Request<RenewTextRebuildLeaseRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RenewTextRebuildLeaseResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn renew_text_rebuild_lease<'life0, 'async_trait>(
&'life0 self,
request: Request<RenewTextRebuildLeaseRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RenewTextRebuildLeaseResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn finish_text_index_rebuild<'life0, 'async_trait>(
&'life0 self,
request: Request<FinishTextIndexRebuildRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FinishTextIndexRebuildResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn finish_text_index_rebuild<'life0, 'async_trait>(
&'life0 self,
request: Request<FinishTextIndexRebuildRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FinishTextIndexRebuildResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn flush_memtables<'life0, 'async_trait>(
&'life0 self,
_request: Request<FlushMemtablesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FlushMemtablesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn compact_range<'life0, 'async_trait>(
&'life0 self,
_request: Request<CompactRangeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CompactRangeResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_stats_profile<'life0, 'async_trait>(
&'life0 self,
_request: Request<GetStatsProfileRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetStatsProfileResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_geo_histogram<'life0, 'async_trait>(
&'life0 self,
request: Request<GetGeoHistogramRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetGeoHistogramResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_temporal_histogram<'life0, 'async_trait>(
&'life0 self,
_request: Request<GetTemporalHistogramRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetTemporalHistogramResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_text_seed_sketch<'life0, 'async_trait>(
&'life0 self,
_request: Request<GetTextSeedSketchRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetTextSeedSketchResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_named_graphs<'life0, 'async_trait>(
&'life0 self,
request: Request<ListNamedGraphsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListNamedGraphsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_named_graph<'life0, 'async_trait>(
&'life0 self,
request: Request<AddNamedGraphRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AddNamedGraphResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn health<'life0, 'async_trait>(
&'life0 self,
_request: Request<HealthRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HealthResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn describe<'life0, 'async_trait>(
&'life0 self,
_request: Request<HexastoreDescribeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HexastoreDescribeResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for PartitionService
impl RefUnwindSafe for PartitionService
impl Send for PartitionService
impl Sync for PartitionService
impl Unpin for PartitionService
impl UnsafeUnpin for PartitionService
impl UnwindSafe for PartitionService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].