pub struct ExecutionContext {
pub document_store: Option<Arc<dyn DocumentStore>>,
pub inverted_index: Option<Arc<dyn InvertedIndex>>,
pub vector_indexes: BTreeMap<FieldName, Arc<dyn VectorIndex>>,
pub stats: Option<IndexStats>,
pub graph: Option<Arc<dyn GraphNeighborLookup>>,
}Expand description
Storage handles passed to every operator’s execute call.
Holding Arc<dyn ...> rather than borrows keeps the operator tree
independent of how the engine owns its stores. The trade-off is one
Arc::clone per operator at engine boundary; per-operator dispatch
remains a single virtual call.
Fields§
§document_store: Option<Arc<dyn DocumentStore>>§inverted_index: Option<Arc<dyn InvertedIndex>>§vector_indexes: BTreeMap<FieldName, Arc<dyn VectorIndex>>§stats: Option<IndexStats>§graph: Option<Arc<dyn GraphNeighborLookup>>Optional named graph (label-only neighbor lookup) for the
graph-aware deep-fusion layers (Propagate, Conv, Pool).
Held as a generic neighbor-lookup callback so this crate stays
independent of uqa-graph.
Implementations§
Source§impl ExecutionContext
impl ExecutionContext
pub fn new() -> Self
pub fn with_inverted_index(self, idx: Arc<dyn InvertedIndex>) -> Self
pub fn with_document_store(self, ds: Arc<dyn DocumentStore>) -> Self
pub fn with_vector_index( self, field: impl Into<FieldName>, idx: Arc<dyn VectorIndex>, ) -> Self
pub fn with_stats(self, stats: IndexStats) -> Self
pub fn with_graph(self, graph: Arc<dyn GraphNeighborLookup>) -> Self
Trait Implementations§
Source§impl Clone for ExecutionContext
impl Clone for ExecutionContext
Source§fn clone(&self) -> ExecutionContext
fn clone(&self) -> ExecutionContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ExecutionContext
impl Default for ExecutionContext
Source§fn default() -> ExecutionContext
fn default() -> ExecutionContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ExecutionContext
impl !UnwindSafe for ExecutionContext
impl Freeze for ExecutionContext
impl Send for ExecutionContext
impl Sync for ExecutionContext
impl Unpin for ExecutionContext
impl UnsafeUnpin for ExecutionContext
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
Mutably borrows from an owned value. Read more