pub struct RetrievalQueryContext<'a> {
pub binding: RetrievalBinding<'a>,
pub trees: TreeExecutionContext<'a>,
pub planner: &'a dyn RelationRetrievalPlanner,
pub graphs: &'a dyn GraphLifecycle,
}Expand description
Inputs for retrieval calls below the caller’s statement and transaction boundary.
Fields§
§binding: RetrievalBinding<'a>§trees: TreeExecutionContext<'a>§planner: &'a dyn RelationRetrievalPlanner§graphs: &'a dyn GraphLifecycleImplementations§
Source§impl RetrievalQueryContext<'_>
impl RetrievalQueryContext<'_>
Source§impl<'a> RetrievalQueryContext<'a>
impl<'a> RetrievalQueryContext<'a>
pub fn optimized( &self, table: &str, where_expr: Option<&ScalarExpr>, params: &[SQLParam], ) -> Result<Option<Vec<ScoredEntry>>, SQLError>
pub fn prepare_accelerated<'b>(
&self,
table: &'b str,
signal_table: &'b str,
where_expr: Option<&ScalarExpr>,
params: &'b [SQLParam],
capture_complete_scores: bool,
) -> Result<Option<ScoredEntriesProducer<'b>>, SQLError>where
'a: 'b,
Sourcepub fn captured(
&self,
table: &str,
where_expr: Option<&ScalarExpr>,
params: &[SQLParam],
) -> Result<Option<ProducedScoredEntries>, SQLError>
pub fn captured( &self, table: &str, where_expr: Option<&ScalarExpr>, params: &[SQLParam], ) -> Result<Option<ProducedScoredEntries>, SQLError>
Preserve the ordinary predicate’s lowering and optimizer boundary while retaining complete text scores in bounded storage.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RetrievalQueryContext<'a>
impl<'a> !Send for RetrievalQueryContext<'a>
impl<'a> !Sync for RetrievalQueryContext<'a>
impl<'a> !UnwindSafe for RetrievalQueryContext<'a>
impl<'a> Freeze for RetrievalQueryContext<'a>
impl<'a> Unpin for RetrievalQueryContext<'a>
impl<'a> UnsafeUnpin for RetrievalQueryContext<'a>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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 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> ⓘ
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