pub struct PhysicalPlan {
pub operator: Box<dyn Operator>,
pub columns: Vec<String>,
pub adaptive_context: Option<AdaptiveContext>,
}Expand description
A physical plan ready for execution.
Fields§
§operator: Box<dyn Operator>The root physical operator.
columns: Vec<String>Column names for the result.
adaptive_context: Option<AdaptiveContext>Adaptive execution context with cardinality estimates.
When adaptive execution is enabled, this context contains estimated cardinalities at various checkpoints in the plan. During execution, actual row counts are recorded and compared against estimates.
Implementations§
Source§impl PhysicalPlan
impl PhysicalPlan
Sourcepub fn into_operator(self) -> Box<dyn Operator>
pub fn into_operator(self) -> Box<dyn Operator>
Consumes the plan and returns the operator.
Sourcepub fn adaptive_context(&self) -> Option<&AdaptiveContext>
pub fn adaptive_context(&self) -> Option<&AdaptiveContext>
Returns the adaptive context, if adaptive execution is enabled.
Sourcepub fn take_adaptive_context(&mut self) -> Option<AdaptiveContext>
pub fn take_adaptive_context(&mut self) -> Option<AdaptiveContext>
Takes ownership of the adaptive context.
Auto Trait Implementations§
impl Freeze for PhysicalPlan
impl !RefUnwindSafe for PhysicalPlan
impl Send for PhysicalPlan
impl Sync for PhysicalPlan
impl Unpin for PhysicalPlan
impl !UnwindSafe for PhysicalPlan
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