pub struct PlanProperties {
pub eq_properties: EquivalenceProperties,
pub partitioning: Partitioning,
pub emission_type: EmissionType,
pub boundedness: Boundedness,
pub evaluation_type: EvaluationType,
pub scheduling_type: SchedulingType,
output_ordering: Option<LexOrdering>,
}Expand description
Stores certain, often expensive to compute, plan properties used in query optimization.
These properties are stored a single structure to permit this information to be computed once and then those cached results used multiple times without recomputation (aka a cache)
Fields§
§eq_properties: EquivalenceProperties§partitioning: Partitioning§emission_type: EmissionType§boundedness: Boundedness§evaluation_type: EvaluationType§scheduling_type: SchedulingType§output_ordering: Option<LexOrdering>Implementations§
Source§impl PlanProperties
impl PlanProperties
Sourcepub fn new(
eq_properties: EquivalenceProperties,
partitioning: Partitioning,
emission_type: EmissionType,
boundedness: Boundedness,
) -> PlanProperties
pub fn new( eq_properties: EquivalenceProperties, partitioning: Partitioning, emission_type: EmissionType, boundedness: Boundedness, ) -> PlanProperties
Construct a new PlanPropertiesCache from the
Sourcepub fn with_partitioning(self, partitioning: Partitioning) -> PlanProperties
pub fn with_partitioning(self, partitioning: Partitioning) -> PlanProperties
Overwrite output partitioning with its new value.
Sourcepub fn with_eq_properties(
self,
eq_properties: EquivalenceProperties,
) -> PlanProperties
pub fn with_eq_properties( self, eq_properties: EquivalenceProperties, ) -> PlanProperties
Overwrite equivalence properties with its new value.
Sourcepub fn with_boundedness(self, boundedness: Boundedness) -> PlanProperties
pub fn with_boundedness(self, boundedness: Boundedness) -> PlanProperties
Overwrite boundedness with its new value.
Sourcepub fn with_emission_type(self, emission_type: EmissionType) -> PlanProperties
pub fn with_emission_type(self, emission_type: EmissionType) -> PlanProperties
Overwrite emission type with its new value.
Sourcepub fn with_scheduling_type(
self,
scheduling_type: SchedulingType,
) -> PlanProperties
pub fn with_scheduling_type( self, scheduling_type: SchedulingType, ) -> PlanProperties
Set the SchedulingType.
Defaults to SchedulingType::NonCooperative
Sourcepub fn with_evaluation_type(self, drive_type: EvaluationType) -> PlanProperties
pub fn with_evaluation_type(self, drive_type: EvaluationType) -> PlanProperties
Set the EvaluationType.
Defaults to EvaluationType::Lazy
Sourcepub fn with_constraints(self, constraints: Constraints) -> PlanProperties
pub fn with_constraints(self, constraints: Constraints) -> PlanProperties
Overwrite constraints with its new value.
pub fn equivalence_properties(&self) -> &EquivalenceProperties
pub fn output_partitioning(&self) -> &Partitioning
pub fn output_ordering(&self) -> Option<&LexOrdering>
Trait Implementations§
Source§impl Clone for PlanProperties
impl Clone for PlanProperties
Source§fn clone(&self) -> PlanProperties
fn clone(&self) -> PlanProperties
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PlanProperties
impl !RefUnwindSafe for PlanProperties
impl Send for PlanProperties
impl Sync for PlanProperties
impl Unpin for PlanProperties
impl !UnwindSafe for PlanProperties
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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