Skip to main content

EmbeddedStoreHandle

Struct EmbeddedStoreHandle 

Source
pub struct EmbeddedStoreHandle { /* private fields */ }

Implementations§

Source§

impl EmbeddedStoreHandle

Source

pub fn compact_search_projection_segments_with_context( &self, policy: SearchOutOfCoreSegmentCompactionPolicy, hint: BackgroundWorkHint, task: RuntimeTaskContext, ) -> Result<ScheduledSearchOutOfCoreSegmentCompactionReport>

Attempts one bounded compaction on the host’s background worker. Large artifact reads run without holding the store’s write lock. Queries keep their pinned generation, and a concurrent publisher makes the compaction fail its generation check instead of replacing newer data.

Source§

impl EmbeddedStoreHandle

Source

pub fn search_projection_change_batch_probe( &self, max_operations: usize, ) -> Result<Option<SearchProjectionChangeBatchProbe>>

Read-only pre-check for bounded search projection catch-up. See EmbeddedStore::search_projection_change_batch_probe.

Source§

impl EmbeddedStoreHandle

Source

pub fn advance_search_projection_source_epoch( &self, target_graph_commit_epoch: u64, ) -> Result<SearchProjectionEpochAdvanceReport>

Advances the search projection’s source graph commit epoch to target_graph_commit_epoch without rewriting any projection data file, after proving that the graph commits in between changed nothing the projection indexes. See EmbeddedStore::advance_search_projection_source_epoch.

Source§

impl EmbeddedStoreHandle

Source

pub fn mark_search_projection_full_reindex_needed( &self, reason: &str, ) -> Result<SearchProjectionFreshness>

Marks the search projection as needing a full reindex, for example after an external vector store rebuilt every embedding.

This writes the projection’s existing .reindex_needed marker, which SearchProjectionFreshness::full_reindex_needed reports in Self::runtime_status, search candidate reports and readiness. HawDB never clears it here: only a full reindex (a rebuild of the projection) or the host’s own preparation flow clears it. Recording the same reason again is a no-op; a different reason is added.

Requires write admission and a writable graph. A read-only handle, a handle without a search projection, and an empty, multi-line or longer than MAX_SEARCH_PROJECTION_MARKER_REASON_BYTES reason are refused before anything is written, with HawDBError::ReadOnly (read-only handle) or Semantic errors. Returns the projection freshness after the mark.

Source

pub fn mark_search_projection_metadata_repair_needed( &self, reason: &str, ) -> Result<SearchProjectionFreshness>

Marks the search projection’s metadata as needing repair, under the existing .projection_metadata_repair_needed marker (SearchProjectionFreshness::metadata_repair_needed). The marker keeps the latest reason. Otherwise behaves like Self::mark_search_projection_full_reindex_needed.

Source§

impl EmbeddedStoreHandle

Source

pub fn rebuild_out_of_core_search_projection( &self, target: impl AsRef<Path>, options: SearchProjectionRebuildOptions, source: &mut dyn SearchProjectionRebuildSource, task: RuntimeTaskContext, ) -> Result<SearchProjectionRebuildReport>

Rebuilds an incremental-maintenance search projection from the graph into target, a directory name that must not exist yet.

The rebuild pins one graph read snapshot at epoch E and streams its projection rows, in bounded hydration batches, through an external sort into a new out-of-core generation stamped with E. No step holds the corpus in memory: rows, sort buffers and artifact construction run under options.maintenance.working_memory_bytes, admitted as maintenance in options.priority and bound to task for cancellation and deadlines. Writers are not blocked; their commits after E are left to incremental catch-up.

The generation is built in a private sibling stage (.<target name>.hawdb-search-rebuild-*), opened with the same incremental options the host will use, and verified: a complete read of the generation and a second scan of the pinned graph must have the same document count and content digest. Only then is the stage moved onto target with one no-replace rename followed by directory barriers. A failure or cancellation removes the stage this call created; a crash can leave it for the host to remove. Nothing outside the stage and target is written, so the current projection directory is never modified or deleted and remains evidence.

Switching is the host’s step: reopen the store with search_projection_path = target and options.maintenance, then run catch-up, which replays commits after E. The change log must still retain them; otherwise catch-up refuses and the rebuild is repeated. HawDBError::PublishOutcomeUnknown means the move may have completed without its durability barrier.

An existing target, a missing parent, a target that appears before installation and a verification mismatch return HawDBError::SearchProjectionRebuildRefused. That is not a storage failure: nothing was installed and the graph and current projection are unchanged. Cancellation keeps the Execution cancellation error.

The graph snapshot stays pinned for the whole rebuild, so versions it needs are not reclaimed until the call returns.

Source§

impl EmbeddedStoreHandle

Source

pub fn new(store: EmbeddedStore) -> Result<Self>

Source

pub fn open_with_options( options: EmbeddedStoreOpenOptions, ) -> Result<(Self, EmbeddedStoreOpenReport)>

Source

pub fn open_with_options_and_runtime_governor( options: EmbeddedStoreOpenOptions, runtime_governor: RuntimeGovernor, ) -> Result<(Self, EmbeddedStoreOpenReport)>

Source

pub fn runtime_governor_snapshot(&self) -> Result<RuntimeGovernorSnapshot>

Source

pub fn storage_residency_report(&self) -> Result<StorageResidencyReport>

Returns a point-in-time storage residency snapshot through the admitted embedded facade. Qualification uses this to prove cancellation does not leak cache pins without reaching through to the storage engine.

Source

pub fn storage_pressure_snapshot(&self) -> Result<StoragePressureSnapshot>

Returns storage debt through the admitted embedded facade, with the same reader-epoch semantics as crate::Database::storage_pressure_snapshot.

Hosts read WAL/delta pressure and generation reclamation debt (generation_reclamation_pending_files / _bytes) here instead of listing the store directory. Every live reader pin, including this handle’s own read publication at the current epoch, contributes to oldest_reader_commit_epoch; a held older reader therefore shows as oldest_reader_lag and obsolete_generation_bytes.

Source

pub fn storage_handle_poisoned(&self) -> Result<bool>

Reports whether a fail-closed storage error poisoned this handle.

Source

pub fn serving_path_readiness(&self) -> EmbeddedServingPathReadiness

Reports the admitted facade contract. Production hosts must bind this report to their long-lived runtime identity before using it as evidence.

Source

pub fn refresh_runtime_resources(&self) -> Result<bool>

Source

pub fn checkpoint(&self) -> Result<()>

Persist the current graph generation through the admitted embedded maintenance path.

Import and qualification hosts use this typed boundary instead of issuing a textual CHECKPOINT statement or reaching through the facade to the storage engine. The single maintenance admission’s memory request is extended by the columnar shadow’s builder-lifetime reservation, and that pre-admitted context travels into the checkpoint so the shadow build never issues a nested admission against the permit this method already holds.

Source

pub fn checkpoint_context( &self, task_context: &RuntimeTaskContext, ) -> Result<()>

Runs Self::checkpoint under the caller’s admission policy, cancellation and deadline.

The task context’s admission priority and wait (see RuntimeTaskContext::with_admission_wait) apply to the maintenance admission; no store guard is held while it waits. Cancellation and the deadline are honoured until the checkpoint starts; a started checkpoint runs to completion.

Source

pub fn property_schemas(&self) -> Result<Vec<PropertySchema>>

Declared property descriptors with their tables, types, states and defaults, as reported by crate::Database::property_schemas.

Read-only: takes the store read guard and no runtime admission. Hosts use it to observe a defaulted descriptor moving from BACKFILL through VALIDATING to PUBLIC.

Source

pub fn plan_schema_maintenance(&self) -> Result<QueryOutput>

Read-only dry run of pending descriptor maintenance, with the same rows as crate::Database::plan_schema_maintenance: object_type, object, from_state, to_state, action and estimated_operations. An empty result means no table or property descriptor (including a BACKFILL default) awaits maintenance.

Source

pub fn run_bounded_schema_maintenance( &self, max_estimated_operations: usize, ) -> Result<QueryOutput>

Runs one bounded schema maintenance pass through the admitted embedded maintenance path, with the semantics and result rows of crate::Database::run_bounded_schema_maintenance: only actions that fit max_estimated_operations are applied, as one WAL batch, and the rest stay in their current state for a later call. A property default backfill fills records lacking the key and keeps explicit NULLs; the batch that fills the last lacking record advances the descriptor to VALIDATING, and a later pass promotes it to PUBLIC. Fills resume across any budget, but validation is one action per descriptor, so the pass that promotes it needs at least the estimated_operations that Self::plan_schema_maintenance reports for it. That validation scans the whole table while holding the exclusive write guard and blocks writers meanwhile, so on large tables schedule it like a checkpoint.

Like Self::checkpoint, the call is admitted as foreground maintenance and is explicit: it runs whether or not the database’s RuntimeCapabilities::background_maintenance is enabled, and HawDB never runs schema maintenance on its own, so hosts that declare a default on existing data drive this until Self::plan_schema_maintenance is empty.

Source

pub fn reclaim_branch_storage( &self, limits: BranchReclamationLimits, ) -> Result<BranchReclamationReport>

Reclaims unreachable immutable objects and deleted branch directories of this project through the admitted embedded maintenance path, like Self::checkpoint.

Checkpoints already run a bounded pass automatically after each publication (#1736); this call lets a host drain remaining debt (for example object_reclamation_pending_bytes in Self::storage_pressure_snapshot) or run a pass with its own per-pass budget. Liveness covers every branch head, recorded creation base root and registered reader, candidate or job root. A report with deferred_for_active_leases means an unregistered owner is active; non-zero pending_objects means the budget was reached or a removal failed. Call again in either case.

Source

pub fn retry_search_projection_cleanup( &self, options: SearchProjectionCleanupOptions, ) -> Result<SearchProjectionCleanupReport>

Runs one generation cleanup pass over the open search projection (resident or out-of-core) with explicit limits, through the admitted embedded maintenance path, and returns its report (#1755).

Every resident checkpoint and incremental publication already runs a pass and reports it in projection_cleanup of its SearchCheckpointReport or crate::SearchProjectionDeltaReport. A pass re-hashes the active closure before it deletes anything, except files this process already verified unchanged; after a restart the first pass may therefore need more than the default max_verification_bytes. When an earlier report has retry_required, call this with limits that cover the active generation. Nothing is deleted unless the closure is proven intact.

Raising max_verification_bytes only allows more streaming re-hash work. A resident snapshot is decoded in memory (to check its vector count) only under a fixed 128 MiB bound; a larger one is stream-verified and its standalone vector artifacts are retained.

The pass holds this handle’s store write lock for its whole run, so writes and publications wait until it finishes; with a large ceiling it re-reads the active closure. Call it when the store is idle.

Source

pub fn query_with_report(&self, cypher: &str) -> Result<EmbeddedQueryOutput>

Source

pub fn set_telemetry_sink( &self, telemetry: Option<Arc<dyn TelemetrySink>>, ) -> Result<()>

Source

pub fn query_with_report_options( &self, cypher: &str, options: EmbeddedQueryReportOptions, ) -> Result<EmbeddedQueryOutput>

Source

pub fn query_with_params_with_report( &self, cypher: &str, parameters: &BTreeMap<String, Value>, ) -> Result<EmbeddedQueryOutput>

Source

pub fn search_projection_documents( &self, document_ids: &[String], max_documents: usize, ) -> Result<Vec<SearchDocument>>

Hydrates an explicitly bounded set of search-projection documents.

Candidate search intentionally returns compact identities. Embedded hosts use this method for projection-owned payloads, such as source chunks, that have no authoritative graph node to hydrate from.

Documents return in request order, one per id. An id the projection does not contain refuses the whole request with HawDBError::Semantic on both the resident and the out-of-core projection.

Source

pub fn search_projection_documents_with_report( &self, document_ids: &[String], max_documents: usize, ) -> Result<SearchHydrationOutput>

Source

pub fn search_projection_documents_with_report_context( &self, document_ids: &[String], max_documents: usize, task_context: &RuntimeTaskContext, ) -> Result<SearchHydrationOutput>

Runs Self::search_projection_documents_with_report under the caller’s admission policy, cancellation and deadline.

Source

pub fn list_search_projection_ids( &self, kinds: &BTreeSet<SearchProjectionKind>, after: Option<&str>, limit: usize, task_context: &RuntimeTaskContext, ) -> Result<SearchProjectionIdPage>

Lists one ordered page of Search projection document IDs for the requested kinds without retaining the projection across calls.

after is exclusive. A caller must compare page.generation() on every page and restart from None if it changes. The returned page retains a runtime memory charge for its ID/cursor bytes only; resident generations are read under the short publication lock, and out-of-core generations are pinned only for this call while decoding their ID mappings.

Source§

impl EmbeddedStoreHandle

Source

pub fn transaction( &self, statements: &[NowledgeGraphStatement], ) -> Result<NowledgeGraphTransactionOutput>

Source

pub fn transaction_context( &self, task_context: &RuntimeTaskContext, statements: &[NowledgeGraphStatement], ) -> Result<NowledgeGraphTransactionOutput>

Runs Self::transaction under the caller’s deadline and cancellation; see Self::with_transaction_context for where they are honored and the commit boundary.

Source

pub fn with_transaction<T>( &self, operation: impl FnOnce(&mut ConcurrentDatabaseTransaction) -> Result<T>, ) -> Result<T>

Executes caller-owned Cypher and SQL statements in one canonical graph/relational transaction.

The callback receives the ordinary query-first transaction surface; no route-specific mutation API or second durability boundary is introduced. Returning an error rolls back every staged statement.

Source

pub fn with_transaction_context<T>( &self, task_context: &RuntimeTaskContext, operation: impl FnOnce(&mut ConcurrentDatabaseTransaction) -> Result<T>, ) -> Result<T>

Runs Self::with_transaction under the caller’s deadline and cancellation.

The context’s admission priority and wait apply to the transaction’s runtime admission, as described on Self::with_bounded_read_snapshot_context; a waiting writer holds no store guard and no write locks while queued.

They are honored up to the commit boundary: before runtime admission, while waiting for another writer’s locks, during each statement, when the commit is about to run, and while a commit waits for live-overlay headroom before retrying. A stop there returns the typed, non-poisoning HawDBError::RuntimeTaskStopped, rolls back every staged statement and leaves the handle usable. Once the commit has started its WAL append it is never interrupted: a deadline that passes then does not fail or undo it. A lock wait also still ends at the transaction’s own lock timeout.

Source

pub fn with_read_transaction<T>( &self, max_estimated_payload_bytes: usize, operation: impl FnOnce(&mut DatabaseReadTransaction) -> Result<T>, ) -> Result<T>

Executes a caller-owned group of bounded Cypher reads against one immutable graph snapshot.

Source

pub fn with_bounded_read_snapshot<T>( &self, budget: EmbeddedReadSnapshotBudget, operation: impl FnOnce(&mut EmbeddedReadSnapshot<'_>) -> Result<T>, ) -> Result<T>

Executes App-owned Cypher and PostgreSQL reads against one immutable graph/relational snapshot while the search projection is pinned. Budgets are cumulative across every statement in the callback.

Source

pub fn with_bounded_read_snapshot_context<T>( &self, budget: EmbeddedReadSnapshotBudget, task_context: &RuntimeTaskContext, operation: impl FnOnce(&mut EmbeddedReadSnapshot<'_>) -> Result<T>, ) -> Result<T>

Executes one bounded App read snapshot under the caller’s cancellation, deadline, and resource reservation context.

The context also selects the admission policy: an opportunistic read can rank behind other work with RuntimeTaskContext::with_admission_queue_priority and wait in the governor’s priority queue with RuntimeTaskContext::with_admission_wait instead of being refused at once. Prefer the queue rank to RuntimeTaskContext::with_admission_priority: the latter moves a read into the Background pool, which automatic checkpoints share (one task below eight CPUs), so a long read there delays the checkpoint that committing writers may wait for. The context never moves a transaction into the Background pool; one whose statements all plan as Background work (or that has none) is admitted there as before.

Recommended host tiering: user requests use the default context (immediate, Foreground) on a governor with RuntimeGovernor::set_foreground_preempts_queued_background(true); a replay writer and shadow-comparison reads rank Background with a wait. Users then never yield to queued ranked work, the writer is FIFO with waiting shadow reads, and maintenance keeps its own pool. The same policy applies to the handle’s other context-taking admissions: bounded and graph read snapshots, admitted queries and streaming reads, transaction_context and with_transaction_context, typed search (search_candidates_with_report_context, retrieve_knowledge_with_report_context, search_projection_documents_with_report_context), search projection ID pages, checkpoint_context and compact_search_projection_segments_with_context. Other typed maintenance and context-free methods keep the default (immediate, operation priority). No store guard or publication lock is held while queued. An admission wait that ends returns the typed RuntimeAdmissionRefused with waited set; cancellation or the task deadline while queued returns RuntimeTaskStopped.

Do not wait for a nested admission inside the operation callback (or a transaction callback): the outer permit stays held, so on a one-CPU governor an Unbounded nested wait without a task deadline never returns. Use a bounded wait, or admit sequentially.

Source

pub fn with_bounded_graph_read_snapshot<T>( &self, budget: EmbeddedReadSnapshotBudget, operation: impl FnOnce(&mut EmbeddedReadSnapshot<'_>) -> Result<T>, ) -> Result<T>

Executes bounded graph and relational reads from the published committed view. Acquisition and callback execution can overlap a staging writer.

External search projections are deliberately unavailable: vector queries fail and the report contains no projection epochs. Use with_bounded_read_snapshot when a pinned projection is required.

Source

pub fn with_bounded_graph_read_snapshot_context<T>( &self, budget: EmbeddedReadSnapshotBudget, task_context: &RuntimeTaskContext, operation: impl FnOnce(&mut EmbeddedReadSnapshot<'_>) -> Result<T>, ) -> Result<T>

Executes one published graph snapshot under the caller’s cancellation, deadline, and resource reservation context.

Source

pub fn hawdb_lightning_initial_import_apply_with_document_identities( &self, encoded_graph_stream: &str, encoded_relational_stream: &[u8], manifest: &HawDBLightningBootstrapManifest, projection_freshness: Option<&SearchProjectionFreshness>, checkpoint: Option<&HawDBLightningInitialImportCheckpoint>, document_identities: &[HawDBLightningInitialImportDocumentIdentity], ) -> Result<HawDBLightningInitialImportApplyReport>

Source

pub fn apply_search_projection_delta_and_checkpoint( &self, delta: SearchProjectionDelta, ) -> Result<SearchProjectionDeltaReport>

Applies an externally materialized projection batch and makes it durable before returning. This is the library boundary used when Mem imports a legacy LanceDB projection without rebuilding embeddings. An empty batch still rewrites a resident projection; use Self::advance_search_projection_source_epoch to move only the epoch.

Source

pub fn apply_initial_import_projection_delta( &self, delta: SearchProjectionDelta, import_source_graph_commit_epoch: u64, ) -> Result<SearchProjectionDeltaReport>

Applies one externally materialized initial-import page and records its immutable source provenance without making either durable. See EmbeddedStore::apply_initial_import_projection_delta for the crash/resume contract: nothing applied here survives a crash until Self::checkpoint_initial_import_projection returns Ok.

Source

pub fn checkpoint_initial_import_projection( &self, ) -> Result<SearchCheckpointReport>

Makes every initial-import page applied so far durable by publishing one new resident projection generation. Each call rewrites the whole projection; schedule calls geometrically rather than per page. To move only the source epoch, use Self::advance_search_projection_source_epoch.

Source

pub fn initial_import_projection_pending( &self, ) -> Result<Option<InitialImportProjectionPending>>

Reports initial-import pages that are resident but not yet durable.

Source

pub fn apply_initial_import_projection_delta_and_checkpoint( &self, delta: SearchProjectionDelta, import_source_graph_commit_epoch: u64, ) -> Result<SearchProjectionDeltaReport>

Applies one externally materialized import batch, records its immutable source provenance, and checkpoints both before acknowledging success. Equivalent to Self::apply_initial_import_projection_delta followed by Self::checkpoint_initial_import_projection under one admission.

Source

pub fn query_with_params_with_report_options( &self, cypher: &str, parameters: &BTreeMap<String, Value>, options: EmbeddedQueryReportOptions, ) -> Result<EmbeddedQueryOutput>

Source

pub fn query_with_params_with_report_options_context( &self, cypher: &str, parameters: &BTreeMap<String, Value>, options: EmbeddedQueryReportOptions, task_context: &RuntimeTaskContext, ) -> Result<EmbeddedQueryOutput>

Source

pub fn read_query( &self, cypher: &str, options: &EmbeddedReadOptions, ) -> Result<EmbeddedReadOutput>

Source

pub fn read_query_with_params( &self, cypher: &str, parameters: &BTreeMap<String, Value>, options: &EmbeddedReadOptions, ) -> Result<EmbeddedReadOutput>

Source

pub fn read_query_with_params_streaming( &self, cypher: &str, parameters: &BTreeMap<String, Value>, options: &EmbeddedReadOptions, consumer: impl FnMut(BTreeMap<String, Value>) -> Result<()>, ) -> Result<QueryStreamReport>

Source

pub fn read_query_with_params_streaming_context( &self, cypher: &str, parameters: &BTreeMap<String, Value>, options: &EmbeddedReadOptions, task_context: &RuntimeTaskContext, consumer: impl FnMut(BTreeMap<String, Value>) -> Result<()>, ) -> Result<QueryStreamReport>

Source

pub fn read_query_with_params_streaming_collect( &self, cypher: &str, parameters: &BTreeMap<String, Value>, options: &EmbeddedReadOptions, ) -> Result<EmbeddedReadOutput>

Source

pub fn graph_rag_schema_context( &self, options: GraphRagSchemaContextOptions, ) -> Result<GraphRagSchemaContext>

Source

pub fn read_generated_graph_rag( &self, query: &GraphRagGeneratedQuery, parameters: &BTreeMap<String, Value>, options: &EmbeddedReadOptions, ) -> Result<EmbeddedReadOutput>

Source§

impl EmbeddedStoreHandle

Source

pub fn search_candidates( &self, request: &SearchCandidateRequest, ) -> Result<SearchCandidateOutput>

Source

pub fn search_candidates_with_report( &self, request: &SearchCandidateRequest, ) -> Result<SearchCandidateOutput>

Source

pub fn search_candidates_with_report_context( &self, request: &SearchCandidateRequest, task_context: &RuntimeTaskContext, ) -> Result<SearchCandidateOutput>

Runs Self::search_candidates_with_report under the caller’s admission policy (priority and wait), cancellation and deadline, so a shadow-comparison search can run at Background priority.

Source

pub fn validate_sampled_vector_recall( &self, options: VectorRecallValidationOptions, ) -> Result<VectorRecallValidationReport>

Source

pub fn qualify_sampled_vector_recall_for_production( &self, options: VectorRecallValidationOptions, evidence_binding: ProductionEvidenceBinding, expected_identity: ProductionQualificationIdentity, ) -> Result<VectorRecallProductionQualificationReport>

Source

pub fn retrieve_knowledge( &self, request: &KnowledgeRetrievalRequest, ) -> Result<KnowledgeRetrievalOutput>

Source

pub fn retrieve_knowledge_with_report( &self, request: &KnowledgeRetrievalRequest, ) -> Result<RetrievalOutput>

Source

pub fn retrieve_knowledge_with_report_context( &self, request: &KnowledgeRetrievalRequest, task_context: &RuntimeTaskContext, ) -> Result<RetrievalOutput>

Runs Self::retrieve_knowledge_with_report under the caller’s admission policy, cancellation and deadline.

Source

pub fn search_candidate_readiness( &self, request: &SearchCandidateRequest, options: &SearchCandidateReadinessOptions, ) -> Result<SearchCandidateReadinessReport>

Source

pub fn search_candidate_shadow_evidence_json<I, S>( &self, request: &SearchCandidateRequest, primary_candidate_ids: I, ) -> Result<Value>
where I: IntoIterator<Item = S>, S: AsRef<str>,

Source

pub fn slow_query_report(&self) -> Result<SlowQueryReport>

Source

pub fn slow_query_report_json(&self) -> Result<Value>

Source

pub fn runtime_status(&self) -> Result<EmbeddedRuntimeStatus>

Source

pub fn database_instance_identity(&self) -> Result<DatabaseInstanceIdentity>

Current admitted database instance; does not retain a target fence.

Source

pub fn production_resource_profile( &self, statement: &NowledgeGraphStatement, limits: StorageResourceProfileLimits, evidence_binding: ProductionEvidenceBinding, expected_identity: ProductionQualificationIdentity, ) -> Result<StorageResourceProfileReport>

Source

pub fn production_status( &self, route_ownership: Option<&RouteOwnershipReadinessReport>, ) -> Result<EmbeddedProductionStatus>

Source

pub fn production_status_json( &self, route_ownership: Option<&RouteOwnershipReadinessReport>, ) -> Result<Value>

Source

pub fn cutover_controls_report( &self, controls: CutoverControls, route_ownership: Option<&RouteOwnershipReadinessReport>, ) -> Result<CutoverControlsReport>

Source

pub fn cutover_controls_report_with_initial_import_cutover_catch_up( &self, controls: CutoverControls, route_ownership: Option<&RouteOwnershipReadinessReport>, initial_import_cutover_catch_up: Option<&HawDBLightningInitialImportCutoverCatchUpReport>, ) -> Result<CutoverControlsReport>

Source

pub fn cutover_controls_report_with_initial_import_recovery( &self, controls: CutoverControls, route_ownership: Option<&RouteOwnershipReadinessReport>, initial_import_recovery: Option<&HawDBLightningInitialImportRecoveryReadinessReport>, ) -> Result<CutoverControlsReport>

Source

pub fn cutover_controls_report_json( &self, controls: CutoverControls, route_ownership: Option<&RouteOwnershipReadinessReport>, ) -> Result<Value>

Source

pub fn cutover_controls_report_json_with_initial_import_cutover_catch_up( &self, controls: CutoverControls, route_ownership: Option<&RouteOwnershipReadinessReport>, initial_import_cutover_catch_up: Option<&HawDBLightningInitialImportCutoverCatchUpReport>, ) -> Result<Value>

Source

pub fn library_readiness( &self, options: &ReadinessOptions, ) -> Result<LibraryReadinessReport>

Source

pub fn library_readiness_json( &self, options: &ReadinessOptions, ) -> Result<Value>

Source

pub fn readiness_dashboard( &self, options: &ReadinessOptions, ) -> Result<ReadinessDashboard>

Source

pub fn readiness_dashboard_json( &self, options: &ReadinessOptions, ) -> Result<Value>

Source

pub fn operations_readiness( &self, options: &ReadinessOptions, ) -> Result<OperationsReadinessReport>

Source

pub fn operations_readiness_json( &self, options: &ReadinessOptions, ) -> Result<Value>

Source

pub fn query_runtime_preflight( &self, probes: &[NowledgeQueryRuntimePreflightProbe], ) -> Result<NowledgeQueryRuntimePreflightReport>

Source

pub fn query_runtime_preflight_json( &self, probes: &[NowledgeQueryRuntimePreflightProbe], ) -> Result<Value>

Source

pub fn externally_owned_rows_required( &self, ) -> Result<Option<ExternallyOwnedRowsToken>>

Source

pub fn acknowledge_externally_owned_rows_restored( &self, token: ExternallyOwnedRowsToken, ) -> Result<bool>

Acknowledges that the host re-pushed its externally owned rows for token. See EmbeddedStore::acknowledge_externally_owned_rows_restored: a stale token returns Ok(false) and changes nothing.

Source

pub fn catch_up_search_projection( &self, max_operations_per_batch: usize, max_batches: usize, ) -> Result<SearchProjectionCatchUpReport>

Source

pub fn catch_up_search_projection_with_relational<F>( &self, max_operations_per_batch: usize, max_batches: usize, relational_hydrator: F, ) -> Result<SearchProjectionCatchUpReport>

Runs bounded unified graph-and-relational projection catch-up through the embedded library handle.

Source

pub fn catch_up_search_projection_with_batch_hydrator<F>( &self, max_change_operations_per_batch: usize, max_projection_operations_per_batch: usize, max_batches: usize, batch_hydrator: F, ) -> Result<SearchProjectionCatchUpReport>

Runs legacy unified catch-up and invokes the host hydrator per batch. The selected interval must reach the pinned source epoch; a shorter prefix is refused before publication. For bounded resumable private work, use open_or_create_search_projection_consumer and begin_catch_up. This compatibility rule applies to both full-residency and incremental maintenance modes; increasing limits is not a bounded-progress protocol.

Source

pub fn catch_up_search_projection_with_priority_and_batch_hydrator<F>( &self, priority: RuntimeWorkPriority, max_change_operations_per_batch: usize, max_projection_operations_per_batch: usize, max_batches: usize, batch_hydrator: F, ) -> Result<SearchProjectionCatchUpReport>

Runs bounded Search catch-up in the caller-selected runtime lane.

Explicit host work may select Foreground without competing for the background maintenance lane. Admission still enforces the selected lane’s task, memory and I/O limits. Existing catch-up methods retain their background priority; this does not change scheduled maintenance.

Source

pub fn catch_up_search_projection_with_guard_and_batch_hydrator<G, F>( &self, max_change_operations_per_batch: usize, max_projection_operations_per_batch: usize, max_batches: usize, guard: G, batch_hydrator: F, ) -> Result<SearchProjectionCatchUpReport>

Validates caller-owned target state and runs bounded Search catch-up under one embedded write owner. A rejected guard cannot publish a projection batch, and another mutation through this handle cannot change the guarded Graph state before catch-up completes.

The guard must use bounded reads and must not reenter this handle.

Source

pub fn search_projection_changefeed_readiness( &self, require_restart_recoverable: bool, max_operations: Option<usize>, ) -> Result<SearchProjectionChangefeedReadiness>

Source

pub fn catch_up_search_projection_scheduled( &self, max_operations_per_batch: usize, max_batches: usize, ) -> Result<ScheduledSearchProjectionCatchUpReport>

Source§

impl EmbeddedStoreHandle

Source

pub fn open_or_create_defined_search_projection_consumer( &self, definition: SearchProjectionDefinition, projection_directory: impl AsRef<Path>, options: SearchProjectionConsumerOptions, ) -> SearchProjectionConsumerResult<DefinedSearchProjectionConsumer>

Acquire a version/scope-bound registration using its own initializer. A changed definition requires a fresh target and explicit query cutover.

Source

pub fn unregister_search_projection_consumer( &self, id: &SearchProjectionConsumerId, ) -> SearchProjectionConsumerResult<()>

Explicitly remove a logical registration by ID, including idempotent retries. This is an operation on the source owner, not permission for an old Consumer handle to revoke a newer incarnation with the same ID. Projection files remain governed by native cleanup roots.

Source

pub fn open_or_create_search_projection_consumer<F>( &self, id: SearchProjectionConsumerId, projection_directory: impl AsRef<Path>, options: SearchProjectionConsumerOptions, initialize: F, ) -> SearchProjectionConsumerResult<RegisteredSearchProjectionConsumer>

Reuse a stable registration, or initialize a new one from a pinned source. Existing legacy projection paths are never adopted. Initialization is a blocking bootstrap operation; subsequent catch-up uses bounded private steps and construction outside this handle’s publication lock.

Trait Implementations§

Source§

impl Clone for EmbeddedStoreHandle

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EmbeddedStoreHandle

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> RetainedArrowCodeOwner for T
where T: Debug + Send + Sync,

Source§

impl<T> RuntimeIoWavePermit for T
where T: Debug + Send,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.