Struct datafusion_expr::logical_plan::display::GraphvizVisitor
source · [−]pub struct GraphvizVisitor<'a, 'b> { /* private fields */ }
Expand description
Formats plans for graphical display using the DOT
language. This
format can be visualized using software from
graphviz
Implementations
sourceimpl<'a, 'b> GraphvizVisitor<'a, 'b>
impl<'a, 'b> GraphvizVisitor<'a, 'b>
pub fn new(f: &'a mut Formatter<'b>) -> Self
sourcepub fn set_with_schema(&mut self, with_schema: bool)
pub fn set_with_schema(&mut self, with_schema: bool)
Sets a flag which controls if the output schema is displayed
pub fn pre_visit_plan(&mut self, label: &str) -> Result
pub fn post_visit_plan(&mut self) -> Result
Trait Implementations
sourceimpl<'a, 'b> PlanVisitor for GraphvizVisitor<'a, 'b>
impl<'a, 'b> PlanVisitor for GraphvizVisitor<'a, 'b>
sourcefn pre_visit(&mut self, plan: &LogicalPlan) -> Result<bool, Error>
fn pre_visit(&mut self, plan: &LogicalPlan) -> Result<bool, Error>
Invoked on a logical plan before any of its child inputs have been
visited. If Ok(true) is returned, the recursion continues. If
Err(..) or Ok(false) are returned, the recursion stops
immediately and the error, if any, is returned to accept
Read more
sourcefn post_visit(&mut self, _plan: &LogicalPlan) -> Result<bool, Error>
fn post_visit(&mut self, _plan: &LogicalPlan) -> Result<bool, Error>
Invoked on a logical plan after all of its child inputs have
been visited. The return value is handled the same as the
return value of pre_visit
. The provided default implementation
returns Ok(true)
. Read more
Auto Trait Implementations
impl<'a, 'b> !RefUnwindSafe for GraphvizVisitor<'a, 'b>
impl<'a, 'b> !Send for GraphvizVisitor<'a, 'b>
impl<'a, 'b> !Sync for GraphvizVisitor<'a, 'b>
impl<'a, 'b> Unpin for GraphvizVisitor<'a, 'b>where
'b: 'a,
impl<'a, 'b> !UnwindSafe for GraphvizVisitor<'a, 'b>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more