pub struct QueryPlan { /* private fields */ }Expand description
Query execution plan
Implementations§
Source§impl QueryPlan
impl QueryPlan
pub fn new(query: PredicateQuery, strategy: IndexStrategy) -> Self
pub fn with_cost(self, cost: f64) -> Self
pub fn with_estimated_results(self, count: usize) -> Self
Sourcepub fn execute(
&self,
table: &SymbolTable,
) -> Result<Vec<(String, PredicateInfo)>>
pub fn execute( &self, table: &SymbolTable, ) -> Result<Vec<(String, PredicateInfo)>>
Execute the plan
pub fn query(&self) -> &PredicateQuery
pub fn strategy(&self) -> &IndexStrategy
pub fn estimated_cost(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryPlan
impl RefUnwindSafe for QueryPlan
impl Send for QueryPlan
impl Sync for QueryPlan
impl Unpin for QueryPlan
impl UnwindSafe for QueryPlan
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