Enum spark_connect_rs::dataframe::ExplainMode
source · #[repr(i32)]pub enum ExplainMode {
Unspecified = 0,
Simple = 1,
Extended = 2,
Codegen = 3,
Cost = 4,
Formatted = 5,
}
Expand description
Plan explanation mode.
Variants§
Unspecified = 0
Simple = 1
Generates only physical plan.
Extended = 2
Generates parsed logical plan, analyzed logical plan, optimized logical plan and physical plan. Parsed Logical plan is a unresolved plan that extracted from the query. Analyzed logical plans transforms which translates unresolvedAttribute and unresolvedRelation into fully typed objects. The optimized logical plan transforms through a set of optimization rules, resulting in the physical plan.
Codegen = 3
Generates code for the statement, if any and a physical plan.
Cost = 4
If plan node statistics are available, generates a logical plan and also the statistics.
Formatted = 5
Generates a physical plan outline and also node details.
Implementations§
source§impl ExplainMode
impl ExplainMode
source§impl ExplainMode
impl ExplainMode
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<ExplainMode>
pub fn from_str_name(value: &str) -> Option<ExplainMode>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for ExplainMode
impl Clone for ExplainMode
source§fn clone(&self) -> ExplainMode
fn clone(&self) -> ExplainMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExplainMode
impl Debug for ExplainMode
source§impl Default for ExplainMode
impl Default for ExplainMode
source§fn default() -> ExplainMode
fn default() -> ExplainMode
source§impl Hash for ExplainMode
impl Hash for ExplainMode
source§impl Ord for ExplainMode
impl Ord for ExplainMode
source§fn cmp(&self, other: &ExplainMode) -> Ordering
fn cmp(&self, other: &ExplainMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ExplainMode
impl PartialEq for ExplainMode
source§fn eq(&self, other: &ExplainMode) -> bool
fn eq(&self, other: &ExplainMode) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ExplainMode
impl PartialOrd for ExplainMode
source§fn partial_cmp(&self, other: &ExplainMode) -> Option<Ordering>
fn partial_cmp(&self, other: &ExplainMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ExplainMode
impl TryFrom<i32> for ExplainMode
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<ExplainMode, DecodeError>
fn try_from(value: i32) -> Result<ExplainMode, DecodeError>
impl Copy for ExplainMode
impl Eq for ExplainMode
impl StructuralPartialEq for ExplainMode
Auto Trait Implementations§
impl Freeze for ExplainMode
impl RefUnwindSafe for ExplainMode
impl Send for ExplainMode
impl Sync for ExplainMode
impl Unpin for ExplainMode
impl UnwindSafe for ExplainMode
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request