pub enum Basis {
Rank,
Default,
Sampled,
Statistic(Provenance),
Measured,
}Expand description
Where an estimate’s rows came from, ordered by trust: a larger variant is more trustworthy. The ordering gates strategies and breaks ties between orientations the cost model prices alike; it never overrides a strictly cheaper cost (a default can win an anchor it genuinely prices lower).
Variants§
Rank
An unmeasured rank sentinel: no label count at all.
Default
The default selectivity table (ADR-0694).
Sampled
A sampled count (a CONTAINS scan sample).
Statistic(Provenance)
The per-key statistics, tagged with their own provenance (ADR-0696).
Measured
A count read off an index or the label’s own row count.
Trait Implementations§
impl Copy for Basis
impl Eq for Basis
Source§impl Ord for Basis
impl Ord for Basis
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Basis
impl PartialOrd for Basis
impl StructuralPartialEq for Basis
Auto Trait Implementations§
impl Forget for Basis
impl Freeze for Basis
impl Move for Basis
impl RefUnwindSafe for Basis
impl Send for Basis
impl Sync for Basis
impl Unpin for Basis
impl UnsafeUnpin for Basis
impl UnwindSafe for Basis
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.