Struct datafusion_optimizer::optimizer::OptimizerContext
source · pub struct OptimizerContext { /* private fields */ }
Expand description
A standalone OptimizerConfig
that can be used independently
of DataFusion’s config management
Implementations§
source§impl OptimizerContext
impl OptimizerContext
sourcepub fn filter_null_keys(self, filter_null_keys: bool) -> Self
pub fn filter_null_keys(self, filter_null_keys: bool) -> Self
Specify whether to enable the filter_null_keys rule
sourcepub fn with_query_execution_start_time(
self,
query_execution_tart_time: DateTime<Utc>,
) -> Self
pub fn with_query_execution_start_time( self, query_execution_tart_time: DateTime<Utc>, ) -> Self
Specify whether the optimizer should skip rules that produce errors, or fail the query
sourcepub fn with_skip_failing_rules(self, b: bool) -> Self
pub fn with_skip_failing_rules(self, b: bool) -> Self
Specify whether the optimizer should skip rules that produce errors, or fail the query
sourcepub fn with_max_passes(self, v: u8) -> Self
pub fn with_max_passes(self, v: u8) -> Self
Specify how many times to attempt to optimize the plan
Trait Implementations§
source§impl Debug for OptimizerContext
impl Debug for OptimizerContext
source§impl OptimizerConfig for OptimizerContext
impl OptimizerConfig for OptimizerContext
source§fn query_execution_start_time(&self) -> DateTime<Utc>
fn query_execution_start_time(&self) -> DateTime<Utc>
Return the time at which the query execution started. This
time is used as the value for now()
source§fn alias_generator(&self) -> Arc<AliasGenerator>
fn alias_generator(&self) -> Arc<AliasGenerator>
Return alias generator used to generate unique aliases for subqueries
fn options(&self) -> &ConfigOptions
fn function_registry(&self) -> Option<&dyn FunctionRegistry>
Auto Trait Implementations§
impl Freeze for OptimizerContext
impl !RefUnwindSafe for OptimizerContext
impl Send for OptimizerContext
impl Sync for OptimizerContext
impl Unpin for OptimizerContext
impl !UnwindSafe for OptimizerContext
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> 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 more