pub struct QueryPlanner<'a> { /* private fields */ }Expand description
Query planner for optimizing predicate lookups
Implementations§
Source§impl<'a> QueryPlanner<'a>
impl<'a> QueryPlanner<'a>
pub fn new(table: &'a SymbolTable) -> Self
pub fn with_statistics(self, statistics: QueryStatistics) -> Self
Sourcepub fn plan(&mut self, query: &PredicateQuery) -> Result<QueryPlan>
pub fn plan(&mut self, query: &PredicateQuery) -> Result<QueryPlan>
Plan a query
Sourcepub fn execute(
&mut self,
query: &PredicateQuery,
) -> Result<Vec<(String, PredicateInfo)>>
pub fn execute( &mut self, query: &PredicateQuery, ) -> Result<Vec<(String, PredicateInfo)>>
Execute a query and record statistics
Sourcepub fn statistics(&self) -> &QueryStatistics
pub fn statistics(&self) -> &QueryStatistics
Get query statistics
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear the plan cache
Sourcepub fn cache_size(&self) -> usize
pub fn cache_size(&self) -> usize
Get cache size
Auto Trait Implementations§
impl<'a> Freeze for QueryPlanner<'a>
impl<'a> RefUnwindSafe for QueryPlanner<'a>
impl<'a> Send for QueryPlanner<'a>
impl<'a> Sync for QueryPlanner<'a>
impl<'a> Unpin for QueryPlanner<'a>
impl<'a> UnwindSafe for QueryPlanner<'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