risingwave_frontend::optimizer::plan_node

Trait PlanTreeNodeBinary

source
pub trait PlanTreeNodeBinary {
    // Required methods
    fn left(&self) -> PlanRef;
    fn right(&self) -> PlanRef;
    fn clone_with_left_right(&self, left: PlanRef, right: PlanRef) -> Self;

    // Provided method
    fn rewrite_with_left_right(
        &self,
        _left: PlanRef,
        _left_col_change: ColIndexMapping,
        _right: PlanRef,
        _right_col_change: ColIndexMapping,
    ) -> (Self, ColIndexMapping)
       where Self: Sized { ... }
}
Expand description

Required Methods§

source

fn left(&self) -> PlanRef

source

fn right(&self) -> PlanRef

source

fn clone_with_left_right(&self, left: PlanRef, right: PlanRef) -> Self

Provided Methods§

source

fn rewrite_with_left_right( &self, _left: PlanRef, _left_col_change: ColIndexMapping, _right: PlanRef, _right_col_change: ColIndexMapping, ) -> (Self, ColIndexMapping)
where Self: Sized,

Rewrites the plan node according to the schema change of its input nodes during rewriting.

This function can be used to implement prune_col or logical_rewrite_for_stream

Object Safety§

This trait is not object safe.

Implementors§