pub struct PrefixDegreeStats {
pub col_idx: usize,
pub avg_degree: f64,
pub max_degree: f64,
}Expand description
Prefix fan-out statistics for one relation column.
WCOJ planners use this as the trie prefix-degree signal: lower average and bounded maximum fan-out usually mean less inner-loop work for a variable order that binds the column early.
Fields§
§col_idx: usizeColumn index within the relation.
avg_degree: f64Average number of rows below one distinct prefix key.
max_degree: f64High-water fan-out used as a skew guard.
Implementations§
Trait Implementations§
Source§impl Clone for PrefixDegreeStats
impl Clone for PrefixDegreeStats
Source§fn clone(&self) -> PrefixDegreeStats
fn clone(&self) -> PrefixDegreeStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PrefixDegreeStats
impl RefUnwindSafe for PrefixDegreeStats
impl Send for PrefixDegreeStats
impl Sync for PrefixDegreeStats
impl Unpin for PrefixDegreeStats
impl UnsafeUnpin for PrefixDegreeStats
impl UnwindSafe for PrefixDegreeStats
Blanket Implementations§
impl<T> Allocation for T
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