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