Rindle docs and package mapSkip to main content

AnalyzeSource

Struct AnalyzeSource 

Source
pub struct AnalyzeSource {
    pub table: String,
    pub node: u32,
    pub emitted: u64,
    pub scanned: Option<u64>,
    pub fullscan_steps: Option<u64>,
    pub ratio: Option<f64>,
    pub advisory: Option<String>,
    pub sqlite_plan: Option<String>,
    pub scanned_kind: &'static str,
}
Expand description

The numbers for one source leaf — the row the CLI renders per table.

Fields§

§table: String

Source table name.

§node: u32

The throwaway pipeline’s source NodeId index (correlation only; the graph is gone).

§emitted: u64

Rows this source vended into the pipeline — the CountingSource tally. Backend- agnostic (memory or SQLite), the one number available even without the feature.

§scanned: Option<u64>

SQLite scan work proxy (vm_steps) for this leaf — None when the analyze feature (⇒ scan-stats) is off, or on a memory source (no SQLite). This is a v1 work-proxy, not a row count; the true rows-visited (NVISIT) row-ratio is v2.

§fullscan_steps: Option<u64>

Rows an un-indexed full scan stepped over (fullscan_steps) — the direct “a missing index made SQLite scan this table” signal. None without the feature.

§ratio: Option<f64>

scanned / emitted (work per emitted row). None when scanned is unavailable or emitted == 0. The lead diagnostic: a good index keeps it near-flat; a missing one makes it explode.

§advisory: Option<String>

A concrete CREATE INDEX … line, present when this leaf full-scanned and the static advisory (derive_query) names an index for it (§3.5).

§sqlite_plan: Option<String>

The SQLite access path chosen for this leaf’s SELECT — the planner’s EXPLAIN text ("SCAN comments" vs "SEARCH comments USING INDEX …"). None without the analyze feature. The plain-language companion to the ratio: a full SCAN on an amplified leaf is the smoking gun the number flags.

§scanned_kind: &'static str

What scanned measures, for honest rendering: "vm_steps (work proxy)" when the feature is on, else "unavailable".

Trait Implementations§

Source§

impl Clone for AnalyzeSource

Source§

fn clone(&self) -> AnalyzeSource

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AnalyzeSource

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for AnalyzeSource

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,