Struct datafusion_expr::logical_plan::display::IndentVisitor
source · pub struct IndentVisitor<'a, 'b> { /* private fields */ }
Expand description
Formats plans with a single line per node. For example:
Projection: id
Filter: state Eq Utf8("CO")
CsvScan: employee.csv projection=Some([0, 3])“;
Implementations§
Trait Implementations§
source§impl<'a, 'b> PlanVisitor for IndentVisitor<'a, 'b>
impl<'a, 'b> PlanVisitor for IndentVisitor<'a, 'b>
source§fn 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
source§fn 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)
.