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§
source§impl<'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
pub fn start_graph(&mut self) -> Result
pub fn end_graph(&mut self) -> Result
Trait Implementations§
source§impl<'a, 'b> TreeNodeVisitor for GraphvizVisitor<'a, 'b>
impl<'a, 'b> TreeNodeVisitor for GraphvizVisitor<'a, 'b>
§type N = LogicalPlan
type N = LogicalPlan
The node type which is visitable.
source§fn pre_visit(&mut self, plan: &LogicalPlan) -> Result<VisitRecursion>
fn pre_visit(&mut self, plan: &LogicalPlan) -> Result<VisitRecursion>
Invoked before any children of
node
are visited.source§fn post_visit(&mut self, _plan: &LogicalPlan) -> Result<VisitRecursion>
fn post_visit(&mut self, _plan: &LogicalPlan) -> Result<VisitRecursion>
Invoked after all children of
node
are visited. Default
implementation does nothing.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>
impl<'a, 'b> !UnwindSafe for GraphvizVisitor<'a, 'b>
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