pub struct NodeCost {
pub op: &'static str,
pub estimate: CostEstimate,
pub children: Vec<NodeCost>,
}Expand description
An annotated plan cost tree mirroring the LogicalPlan structure.
Each node stores the operator name, its estimated cost, and the cost trees
for its children. Built by CostModel::explain_costs and consumed by
the verbose / JSON explain formatters.
Fields§
§op: &'static strShort operator name (e.g. "Scan", "Join", "Filter").
estimate: CostEstimateThe cost estimate for this node.
children: Vec<NodeCost>Cost trees for child nodes, in the same order as the plan children.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeCost
impl RefUnwindSafe for NodeCost
impl Send for NodeCost
impl Sync for NodeCost
impl Unpin for NodeCost
impl UnsafeUnpin for NodeCost
impl UnwindSafe for NodeCost
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