pub struct DisplayableExecutionPlan<'a> { /* private fields */ }Expand description
Wraps an ExecutionPlan with various ways to display this plan
Implementations§
source§impl<'a> DisplayableExecutionPlan<'a>
impl<'a> DisplayableExecutionPlan<'a>
sourcepub fn new(inner: &'a dyn ExecutionPlan) -> Self
pub fn new(inner: &'a dyn ExecutionPlan) -> Self
Create a wrapper around an ExecutionPlan which can be
pretty printed in a variety of ways
sourcepub fn with_metrics(inner: &'a dyn ExecutionPlan) -> Self
pub fn with_metrics(inner: &'a dyn ExecutionPlan) -> Self
Create a wrapper around an ExecutionPlan which can be
pretty printed in a variety of ways that also shows aggregated
metrics
sourcepub fn with_full_metrics(inner: &'a dyn ExecutionPlan) -> Self
pub fn with_full_metrics(inner: &'a dyn ExecutionPlan) -> Self
Create a wrapper around an ExecutionPlan which can be
pretty printed in a variety of ways that also shows all low
level metrics
sourcepub fn set_show_statistics(self, show_statistics: bool) -> Self
pub fn set_show_statistics(self, show_statistics: bool) -> Self
Enable display of statistics
sourcepub fn indent(&self, verbose: bool) -> impl Display + 'a
pub fn indent(&self, verbose: bool) -> impl Display + 'a
Return a formatable structure that produces a single line
per node.
ProjectionExec: expr=[a]
CoalesceBatchesExec: target_batch_size=8192
FilterExec: a < 5
RepartitionExec: partitioning=RoundRobinBatch(16)
CsvExec: source=...",
sourcepub fn graphviz(&self) -> impl Display + 'a
pub fn graphviz(&self) -> impl Display + 'a
Returns a formatable structure that produces graphviz format for execution plan, which can
be directly visualized here.
An example is
strict digraph dot_plan {
sourcepub fn one_line(&self) -> impl Display + 'a
pub fn one_line(&self) -> impl Display + 'a
Return a single-line summary of the root of the plan
Example: ProjectionExec: expr=[a@0 as a].
sourcepub fn to_stringified(
&self,
verbose: bool,
plan_type: PlanType
) -> StringifiedPlan
pub fn to_stringified( &self, verbose: bool, plan_type: PlanType ) -> StringifiedPlan
format as a StringifiedPlan
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DisplayableExecutionPlan<'a>
impl<'a> Send for DisplayableExecutionPlan<'a>
impl<'a> Sync for DisplayableExecutionPlan<'a>
impl<'a> Unpin for DisplayableExecutionPlan<'a>
impl<'a> !UnwindSafe for DisplayableExecutionPlan<'a>
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