struct PhysicalExprDAEGBuilder<'a, T, F: Fn(&ExprTreeNode<NodeIndex>) -> Result<T>> {
graph: StableGraph<T, usize>,
visited_plans: Vec<(Arc<dyn PhysicalExpr>, NodeIndex)>,
constructor: &'a F,
}Expand description
This struct is used to convert a PhysicalExpr tree into a DAEG (i.e. an expression
DAG) by collecting identical expressions in one node. Caller specifies the node type
in the DAEG via the constructor argument, which constructs nodes in the DAEG from
the ExprTreeNode ancillary object.
Fields§
§graph: StableGraph<T, usize>§visited_plans: Vec<(Arc<dyn PhysicalExpr>, NodeIndex)>§constructor: &'a FImplementations§
Source§impl<T, F: Fn(&ExprTreeNode<NodeIndex>) -> Result<T>> PhysicalExprDAEGBuilder<'_, T, F>
impl<T, F: Fn(&ExprTreeNode<NodeIndex>) -> Result<T>> PhysicalExprDAEGBuilder<'_, T, F>
fn mutate( &mut self, node: ExprTreeNode<NodeIndex>, ) -> Result<Transformed<ExprTreeNode<NodeIndex>>>
Auto Trait Implementations§
impl<'a, T, F> Freeze for PhysicalExprDAEGBuilder<'a, T, F>
impl<'a, T, F> !RefUnwindSafe for PhysicalExprDAEGBuilder<'a, T, F>
impl<'a, T, F> Send for PhysicalExprDAEGBuilder<'a, T, F>
impl<'a, T, F> Sync for PhysicalExprDAEGBuilder<'a, T, F>
impl<'a, T, F> Unpin for PhysicalExprDAEGBuilder<'a, T, F>where
T: Unpin,
impl<'a, T, F> !UnwindSafe for PhysicalExprDAEGBuilder<'a, T, F>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more