pub struct RetrievalBinding<'a> {
pub hook: &'a dyn EngineHook,
pub graphs: &'a dyn GraphNameCatalog,
}Fields§
§hook: &'a dyn EngineHook§graphs: &'a dyn GraphNameCatalogImplementations§
Source§impl RetrievalBinding<'_>
impl RetrievalBinding<'_>
pub fn lower_where( &self, expression: &ScalarExpr, params: &[SQLParam], ) -> Result<Option<OperatorTree>, SQLError>
Sourcepub fn lower_relation_where(
&self,
columns: &[ColumnDef],
expression: &ScalarExpr,
params: &[SQLParam],
) -> Result<Option<OperatorTree>, SQLError>
pub fn lower_relation_where( &self, columns: &[ColumnDef], expression: &ScalarExpr, params: &[SQLParam], ) -> Result<Option<OperatorTree>, SQLError>
Lower a predicate on the relation that declares columns. A predicate on an engine pseudo column such as _doc_id filters the stored column of that name where the relation declares one, and otherwise stays relational.
pub fn lower_function( &self, name: &str, args: &[ScalarExpr], params: &[SQLParam], ) -> Result<OperatorTree, SQLError>
pub fn lower_join( &self, name: &str, relations: Option<&OperatorJoinRelations>, args: &[ScalarExpr], params: &[SQLParam], ) -> Result<(OperatorJoinRelations, OperatorTree), SQLError>
Source§impl RetrievalBinding<'_>
impl RetrievalBinding<'_>
Sourcepub fn direct_vector_retrieval(
&self,
expression: &ScalarExpr,
params: &[SQLParam],
) -> Result<Option<DirectVectorRetrieval>, SQLError>
pub fn direct_vector_retrieval( &self, expression: &ScalarExpr, params: &[SQLParam], ) -> Result<Option<DirectVectorRetrieval>, SQLError>
Describe a predicate that owns one bounded vector candidate pool across a relation hierarchy.
Trait Implementations§
Source§impl GraphNameCatalog for RetrievalBinding<'_>
impl GraphNameCatalog for RetrievalBinding<'_>
Source§impl RetrievalArguments for RetrievalBinding<'_>
impl RetrievalArguments for RetrievalBinding<'_>
fn evaluate_argument( &self, expression: &ScalarExpr, params: &[SQLParam], ) -> Result<Value, SQLError>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RetrievalBinding<'a>
impl<'a> !Send for RetrievalBinding<'a>
impl<'a> !Sync for RetrievalBinding<'a>
impl<'a> !UnwindSafe for RetrievalBinding<'a>
impl<'a> Freeze for RetrievalBinding<'a>
impl<'a> Unpin for RetrievalBinding<'a>
impl<'a> UnsafeUnpin for RetrievalBinding<'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