pub struct QueryPlan {
pub join_order: Vec<String>,
pub access_paths: Vec<AccessPath>,
pub join_segments: Vec<JoinPlanSegment>,
pub total_cost: f64,
pub morsel_eligibility: Option<MorselEligibility>,
}Expand description
The final output of the query planner: an ordered access plan.
Fields§
§join_order: Vec<String>Tables in the chosen join order.
access_paths: Vec<AccessPath>Access path for each table (parallel to join_order).
join_segments: Vec<JoinPlanSegment>Join operator segments selected for execution/explain.
total_cost: f64Total estimated cost in page reads.
morsel_eligibility: Option<MorselEligibility>Morsel-parallel SELECT eligibility (populated after planning).
Trait Implementations§
impl StructuralPartialEq for QueryPlan
Auto Trait Implementations§
impl Freeze for QueryPlan
impl RefUnwindSafe for QueryPlan
impl Send for QueryPlan
impl Sync for QueryPlan
impl Unpin for QueryPlan
impl UnsafeUnpin 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