pub enum Estimate {
Measured(u128),
Scanned {
rows: u128,
scan: u128,
basis: Basis,
},
Rank(u128),
}Expand description
One canonical endpoint ladder (LABS-351): a bound variable is one
row, then the best measured index signal (equality, the range window,
CONTAINS, then label rows), then the unmeasured rank sentinels.
Measured counts and rank sentinels share one ordered scale (the
constants are ordered, direction_cost compares them directly), so
both the planner’s pattern ordering and the executor’s start-element
choice consume the same estimate. pub for the executor’s
cheapest_start.
A sampled CONTAINS measurement carries its own arm (the compound
start estimate, ADR-0474): the seed’s output rows and the whole-label
scan the unseekable filter pays are two different costs — the scan is
a one-time floor, the output scales with the hops — so the walk
compounds them as max(scan, output x degree) instead of scaling the
seed alone.
Variants§
Measured(u128)
Scanned
A seed whose unseekable filter still pays the whole-label scan: rows
the estimated output, scan the label rows the filter reads, and
basis where rows came from — a sampled CONTAINS count, the
key statistics, or the default table. The walk compounds the two
costs as max(scan, output x degree) (ADR-0474).
Rank(u128)
Implementations§
Trait Implementations§
impl Copy for Estimate
impl Eq for Estimate
impl StructuralPartialEq for Estimate
Auto Trait Implementations§
impl Forget for Estimate
impl Freeze for Estimate
impl Move for Estimate
impl RefUnwindSafe for Estimate
impl Send for Estimate
impl Sync for Estimate
impl Unpin for Estimate
impl UnsafeUnpin for Estimate
impl UnwindSafe for Estimate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.