pub struct HybridExecutor { /* private fields */ }Expand description
Hybrid query executor that combines structured and vector results
Implementations§
Source§impl HybridExecutor
impl HybridExecutor
Sourcepub fn new(
graph: Arc<GraphStore>,
index: Arc<GraphTableIndex>,
vector_store: Arc<VectorStore>,
) -> HybridExecutor
pub fn new( graph: Arc<GraphStore>, index: Arc<GraphTableIndex>, vector_store: Arc<VectorStore>, ) -> HybridExecutor
Create a new hybrid executor
Sourcepub fn with_unified_index(self, index: Arc<UnifiedIndex>) -> HybridExecutor
pub fn with_unified_index(self, index: Arc<UnifiedIndex>) -> HybridExecutor
Add cross-reference support
Sourcepub fn execute(
&self,
query: &HybridQuery,
) -> Result<UnifiedResult, ExecutionError>
pub fn execute( &self, query: &HybridQuery, ) -> Result<UnifiedResult, ExecutionError>
Execute a hybrid query
Auto Trait Implementations§
impl Forget for HybridExecutor
impl Freeze for HybridExecutorwhere
*const ArcInner<GraphStore> is !null: Freeze,
PhantomData<ArcInner<GraphStore>>: Freeze,
*const ArcInner<GraphTableIndex> is !null: Freeze,
PhantomData<ArcInner<GraphTableIndex>>: Freeze,
*const ArcInner<HashMap<String, HashMap<String, Value>>> is !null: Freeze,
PhantomData<ArcInner<HashMap<String, HashMap<String, Value>>>>: Freeze,
*const ArcInner<HashMap<(String, String, String), HashMap<String, Value>>> is !null: Freeze,
PhantomData<ArcInner<HashMap<(String, String, String), HashMap<String, Value>>>>: Freeze,
*const ArcInner<VectorStore> is !null: Freeze,
PhantomData<ArcInner<VectorStore>>: Freeze,
*const ArcInner<UnifiedIndex> is !null: Freeze,
PhantomData<ArcInner<UnifiedIndex>>: Freeze,
impl Move for HybridExecutor
impl RefUnwindSafe for HybridExecutorwhere
Atomic<usize>: RefUnwindSafe,
RwLock<HashMap<String, RecordLocation>>: RefUnwindSafe,
RwLock<HashMap<String, Vec<(String, String, f32)>>>: RefUnwindSafe,
RwLock<HashMap<LabelId, HashSet<String>>>: RefUnwindSafe,
RwLock<HashMap<String, HashSet<String>>>: RefUnwindSafe,
RwLock<BloomSegment>: RefUnwindSafe,
RwLock<usize>: RefUnwindSafe,
RwLock<RegistryInner>: RefUnwindSafe,
RwLock<Vec<Page>>: RefUnwindSafe,
Atomic<u32>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
RwLock<HashMap<String, TableRef>>: RefUnwindSafe,
RwLock<HashMap<RowKey, String>>: RefUnwindSafe,
RwLock<HashMap<String, Vec<VectorKey>>>: RefUnwindSafe,
RwLock<HashMap<VectorKey, String>>: RefUnwindSafe,
RwLock<HashMap<String, Vec<RowKey>>>: RefUnwindSafe,
RwLock<HashMap<RowKey, String>>: RefUnwindSafe,
RwLock<HashMap<String, (String, String)>>: RefUnwindSafe,
RwLock<HashMap<VectorKey, RowKey>>: RefUnwindSafe,
RwLock<HashMap<RowKey, Vec<VectorKey>>>: RefUnwindSafe,
impl Send for HybridExecutor
impl Sync for HybridExecutor
impl Unpin for HybridExecutor
impl UnsafeUnpin for HybridExecutorwhere
*const ArcInner<GraphStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<GraphStore>>: UnsafeUnpin,
*const ArcInner<GraphTableIndex> is !null: UnsafeUnpin,
PhantomData<ArcInner<GraphTableIndex>>: UnsafeUnpin,
*const ArcInner<HashMap<String, HashMap<String, Value>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<HashMap<String, HashMap<String, Value>>>>: UnsafeUnpin,
*const ArcInner<HashMap<(String, String, String), HashMap<String, Value>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<HashMap<(String, String, String), HashMap<String, Value>>>>: UnsafeUnpin,
*const ArcInner<VectorStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<VectorStore>>: UnsafeUnpin,
*const ArcInner<UnifiedIndex> is !null: UnsafeUnpin,
PhantomData<ArcInner<UnifiedIndex>>: UnsafeUnpin,
impl UnwindSafe for HybridExecutorwhere
Arc<GraphStore>: UnwindSafe,
Arc<GraphTableIndex>: UnwindSafe,
Arc<HashMap<String, HashMap<String, Value>>>: UnwindSafe,
Arc<HashMap<(String, String, String), HashMap<String, Value>>>: UnwindSafe,
Arc<VectorStore>: UnwindSafe,
Arc<UnifiedIndex>: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request