struct IndentVisitor<'a, 'b> {
t: DisplayFormatType,
f: &'a mut Formatter<'b>,
indent: usize,
show_metrics: ShowMetrics,
show_statistics: bool,
show_schema: bool,
metric_types: &'a [MetricType],
}Expand description
Formats plans with a single line per node.
§Example
ProjectionExec: expr=[column1@0 + 2 as column1 + Int64(2)]
FilterExec: column1@0 = 5
ValuesExecFields§
§t: DisplayFormatTypeHow to format each node
f: &'a mut Formatter<'b>Write to this formatter
indent: usizeIndent size
show_metrics: ShowMetricsHow to show metrics
show_statistics: boolIf statistics should be displayed
show_schema: boolIf schema should be displayed
metric_types: &'a [MetricType]Which metric types should be rendered
Trait Implementations§
Source§impl ExecutionPlanVisitor for IndentVisitor<'_, '_>
impl ExecutionPlanVisitor for IndentVisitor<'_, '_>
Source§fn pre_visit(&mut self, plan: &dyn ExecutionPlan) -> Result<bool, Self::Error>
fn pre_visit(&mut self, plan: &dyn ExecutionPlan) -> Result<bool, Self::Error>
Invoked on an
ExecutionPlan 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 acceptSource§fn post_visit(&mut self, _plan: &dyn ExecutionPlan) -> Result<bool, Self::Error>
fn post_visit(&mut self, _plan: &dyn ExecutionPlan) -> Result<bool, Self::Error>
Invoked on an
ExecutionPlan 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).Auto Trait Implementations§
impl<'a, 'b> Freeze for IndentVisitor<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for IndentVisitor<'a, 'b>
impl<'a, 'b> !Send for IndentVisitor<'a, 'b>
impl<'a, 'b> !Sync for IndentVisitor<'a, 'b>
impl<'a, 'b> Unpin for IndentVisitor<'a, 'b>
impl<'a, 'b> !UnwindSafe for IndentVisitor<'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
§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