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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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