pub struct PlanProperties {
pub eq_properties: EquivalenceProperties,
pub partitioning: Partitioning,
pub emission_type: EmissionType,
pub boundedness: Boundedness,
/* private fields */
}
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
Implementations§
Source§impl PlanProperties
impl PlanProperties
Sourcepub fn new(
eq_properties: EquivalenceProperties,
partitioning: Partitioning,
emission_type: EmissionType,
boundedness: Boundedness,
) -> Self
pub fn new( eq_properties: EquivalenceProperties, partitioning: Partitioning, emission_type: EmissionType, boundedness: Boundedness, ) -> Self
Construct a new PlanPropertiesCache
from the
Sourcepub fn with_partitioning(self, partitioning: Partitioning) -> Self
pub fn with_partitioning(self, partitioning: Partitioning) -> Self
Overwrite output partitioning with its new value.
Sourcepub fn with_eq_properties(self, eq_properties: EquivalenceProperties) -> Self
pub fn with_eq_properties(self, eq_properties: EquivalenceProperties) -> Self
Overwrite equivalence properties with its new value.
Sourcepub fn with_boundedness(self, boundedness: Boundedness) -> Self
pub fn with_boundedness(self, boundedness: Boundedness) -> Self
Overwrite boundedness with its new value.
Sourcepub fn with_emission_type(self, emission_type: EmissionType) -> Self
pub fn with_emission_type(self, emission_type: EmissionType) -> Self
Overwrite emission type with its new value.
Sourcepub fn with_constraints(self, constraints: Constraints) -> Self
pub fn with_constraints(self, constraints: Constraints) -> Self
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 copy 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,
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