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
Auto Trait Implementations§
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