pub struct PlanProperties {
pub eq_properties: EquivalenceProperties,
pub partitioning: Partitioning,
pub execution_mode: ExecutionMode,
/* 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
§execution_mode: ExecutionMode
Implementations§
Source§impl PlanProperties
impl PlanProperties
Sourcepub fn new(
eq_properties: EquivalenceProperties,
partitioning: Partitioning,
execution_mode: ExecutionMode,
) -> Self
pub fn new( eq_properties: EquivalenceProperties, partitioning: Partitioning, execution_mode: ExecutionMode, ) -> 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_execution_mode(self, execution_mode: ExecutionMode) -> Self
pub fn with_execution_mode(self, execution_mode: ExecutionMode) -> Self
Overwrite the execution Mode 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.
pub fn equivalence_properties(&self) -> &EquivalenceProperties
pub fn output_partitioning(&self) -> &Partitioning
pub fn output_ordering(&self) -> Option<LexOrderingRef<'_>>
pub fn execution_mode(&self) -> ExecutionMode
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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