pub struct Optimizer;Implementations§
Source§impl Optimizer
impl Optimizer
pub fn new() -> Self
Sourcepub fn optimize(&mut self, plan: LogicalPlan, stats: &GraphStats) -> LogicalPlan
pub fn optimize(&mut self, plan: LogicalPlan, stats: &GraphStats) -> LogicalPlan
Run the rewrite pipeline. stats drives cost-based selection
when multiple index rewrites match the same Filter(NodeScan);
pass GraphStats::default() to disable scoring (every rewrite
commits unconditionally, the pre-cost-model behaviour).
Sourcepub fn lower_to_physical(&mut self, logical: LogicalPlan) -> PhysicalPlan
pub fn lower_to_physical(&mut self, logical: LogicalPlan) -> PhysicalPlan
Lower a logical plan by consuming it — each op’s owned payload (expressions, patterns, items) is moved into the physical op rather than cloned. Callers should not need the logical plan after this.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Optimizer
impl RefUnwindSafe for Optimizer
impl Send for Optimizer
impl Sync for Optimizer
impl Unpin for Optimizer
impl UnsafeUnpin for Optimizer
impl UnwindSafe for Optimizer
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