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_schema(self, show_schema: bool) -> Self
pub fn set_show_schema(self, show_schema: bool) -> Self
Enable display of schema
If true, plans will be displayed with schema information at the end
of each line. The format is schema=[[a:Int32;N, b:Int32;N, c:Int32;N]]
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 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
Trait Implementations§
source§impl<'a> Clone for DisplayableExecutionPlan<'a>
impl<'a> Clone for DisplayableExecutionPlan<'a>
source§fn clone(&self) -> DisplayableExecutionPlan<'a>
fn clone(&self) -> DisplayableExecutionPlan<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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