pub struct LazyQueryEngine { /* private fields */ }
Expand description
实时构建的懒加载查询引擎
Implementations§
Source§impl LazyQueryEngine
impl LazyQueryEngine
pub fn new(pool: &NodePool, config: LazyQueryConfig) -> LazyQueryEngine
Sourcepub fn smart_query<F>(
&mut self,
query_name: &str,
query_fn: F,
) -> Vec<Arc<Node>>
pub fn smart_query<F>( &mut self, query_name: &str, query_fn: F, ) -> Vec<Arc<Node>>
智能查询(根据查询频率决定是否使用索引)
Sourcepub fn combined_query(
&mut self,
conditions: &[QueryCondition],
) -> Vec<Arc<Node>>
pub fn combined_query( &mut self, conditions: &[QueryCondition], ) -> Vec<Arc<Node>>
组合查询(支持索引优化)
Sourcepub fn get_query_stats(&self) -> QueryStatsSummary
pub fn get_query_stats(&self) -> QueryStatsSummary
获取查询统计信息
Trait Implementations§
impl Send for LazyQueryEngine
impl Sync for LazyQueryEngine
Auto Trait Implementations§
impl Freeze for LazyQueryEngine
impl RefUnwindSafe for LazyQueryEngine
impl Unpin for LazyQueryEngine
impl UnwindSafe for LazyQueryEngine
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
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 more