pub struct QueryEngine<I: TemporalIndexAccess, S: StorageBackend> {
index: I,
store: S,
}Expand description
Query engine that coordinates index + storage + analytics.
Generic over the index I (any TemporalIndexAccess impl) and storage S.
This allows the same engine to work with both TemporalHnsw (single-threaded)
and ConcurrentTemporalHnsw (thread-safe).
Fields§
§index: I§store: SImplementations§
Source§impl<I: TemporalIndexAccess, S: StorageBackend> QueryEngine<I, S>
impl<I: TemporalIndexAccess, S: StorageBackend> QueryEngine<I, S>
Sourcepub fn execute(&self, query: TemporalQuery) -> Result<QueryResult, QueryError>
pub fn execute(&self, query: TemporalQuery) -> Result<QueryResult, QueryError>
Execute a temporal query.
Auto Trait Implementations§
impl<I, S> Freeze for QueryEngine<I, S>
impl<I, S> RefUnwindSafe for QueryEngine<I, S>where
I: RefUnwindSafe,
S: RefUnwindSafe,
impl<I, S> Send for QueryEngine<I, S>
impl<I, S> Sync for QueryEngine<I, S>
impl<I, S> Unpin for QueryEngine<I, S>
impl<I, S> UnwindSafe for QueryEngine<I, S>where
I: UnwindSafe,
S: UnwindSafe,
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