pub struct LimitPushdown {}
Expand description
This rule inspects ExecutionPlan
’s and pushes down the fetch limit from
the parent to the child if applicable.
Implementations§
Source§impl LimitPushdown
impl LimitPushdown
Trait Implementations§
Source§impl Debug for LimitPushdown
impl Debug for LimitPushdown
Source§impl Default for LimitPushdown
impl Default for LimitPushdown
Source§fn default() -> LimitPushdown
fn default() -> LimitPushdown
Returns the “default value” for a type. Read more
Source§impl PhysicalOptimizerRule for LimitPushdown
impl PhysicalOptimizerRule for LimitPushdown
Source§fn optimize(
&self,
plan: Arc<dyn ExecutionPlan>,
_config: &ConfigOptions,
) -> Result<Arc<dyn ExecutionPlan>>
fn optimize( &self, plan: Arc<dyn ExecutionPlan>, _config: &ConfigOptions, ) -> Result<Arc<dyn ExecutionPlan>>
Rewrite
plan
to an optimized formSource§fn schema_check(&self) -> bool
fn schema_check(&self) -> bool
A flag to indicate whether the physical planner should valid the rule will not
change the schema of the plan after the rewriting.
Some of the optimization rules might change the nullable properties of the schema
and should disable the schema check.
Auto Trait Implementations§
impl Freeze for LimitPushdown
impl RefUnwindSafe for LimitPushdown
impl Send for LimitPushdown
impl Sync for LimitPushdown
impl Unpin for LimitPushdown
impl UnwindSafe for LimitPushdown
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