pub struct CreatedIndexes {
pub set: IndexSet,
pub checkpoint_store: Option<Arc<dyn CheckpointStore>>,
pub outbox_writer: Option<Arc<dyn OutboxWriter>>,
pub live_results_writer: Option<Arc<dyn LiveResultsWriter>>,
}Expand description
Result of IndexBackendPlugin::create_indexes.
Bundles the IndexSet together with an optional CheckpointStore
that shares the same underlying session state. Persistent backends return
Some(store); volatile (in-memory) backends return None.
The store’s stage_checkpoint calls land in the same database transaction
as index updates because both are derived from the same SessionControl /
session state instance — that is why the plugin returns them together
rather than via two separate calls.
Fields§
§set: IndexSetThe set of indexes for the query.
checkpoint_store: Option<Arc<dyn CheckpointStore>>Atomic checkpoint store paired with the set’s session state.
None for volatile backends (no persistent storage to checkpoint into).
outbox_writer: Option<Arc<dyn OutboxWriter>>Outbox writer for persisting query results for reaction replay.
None for volatile backends or when outbox persistence is not needed.
live_results_writer: Option<Arc<dyn LiveResultsWriter>>Live results writer for persisting the current result snapshot.
None for volatile backends or when live result persistence is not needed.