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) -> DisplayableExecutionPlan<'a>
pub fn new(inner: &'a dyn ExecutionPlan) -> DisplayableExecutionPlan<'a>
Create a wrapper around an ExecutionPlan
which can be
pretty printed in a variety of ways
sourcepub fn with_metrics(
inner: &'a dyn ExecutionPlan
) -> DisplayableExecutionPlan<'a>
pub fn with_metrics( inner: &'a dyn ExecutionPlan ) -> DisplayableExecutionPlan<'a>
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
) -> DisplayableExecutionPlan<'a>
pub fn with_full_metrics( inner: &'a dyn ExecutionPlan ) -> DisplayableExecutionPlan<'a>
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
) -> DisplayableExecutionPlan<'a>
pub fn set_show_statistics( self, show_statistics: bool ) -> DisplayableExecutionPlan<'a>
Enable display of statistics
sourcepub fn indent(&self, verbose: bool) -> impl Display + 'a
pub fn indent(&self, verbose: bool) -> impl Display + 'a
Return a format
able 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 format
able 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> Freeze for DisplayableExecutionPlan<'a>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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 moreCreates a shared type from an unshared type.