Skip to main content

IndexVerify

Struct IndexVerify 

Source
pub struct IndexVerify {
    pub name: Vec<u8>,
    pub entries: u64,
    pub approx_bytes: u64,
    pub coerce_failures: u64,
    pub excluded: u64,
    pub absent: u64,
    pub rows: u64,
    pub missing: u64,
    pub duplicates: u64,
    pub drift: u64,
    pub checked: u64,
}
Expand description

Per-index verification counters, one row of TABLE.VERIFY.

Fields§

§name: Vec<u8>

Compiled index name (<table>.<column-or-orderpath>).

§entries: u64

Entries currently held by the index.

§approx_bytes: u64

Approximate resident bytes of the index structure.

§coerce_failures: u64

Rows whose driving column is present but fails to coerce to the declared type. Recomputed fresh on every call — the 4.0 counter of this name was a lifetime tally that also swallowed absent-column rows, which is how a healthy migration once read as 30 152 live failures.

§excluded: u64

Rows excluded because a string component exceeded the composite bound (MAX_STR_COMPONENT). Fresh. The counter that turns a silent two-row entries gap into a named number.

§absent: u64

Rows whose driving column is absent — NULL semantics, excluded by design and not a failure. Fresh; named so absence can never again masquerade as coercion failure.

§rows: u64

Prefix rows this verify walked for the row→index direction.

§missing: u64

Rows that derive a value yet have no entry in the index — the “writer forgot this path” class a drift walk structurally cannot see, because it iterates entries and a missing entry is not there to iterate. Fresh.

§duplicates: u64

Distinct sort keys held by more than one row. Non-zero means the sort is not a total order — a paged reader can skip or repeat rows at page boundaries. Add a bounded tie-break column.

§drift: u64

Entries whose held value disagrees with re-deriving from the row right now. Recomputed fresh on every call.

§checked: u64

Entries the drift recheck examined this call.

Trait Implementations§

Source§

impl Clone for IndexVerify

Source§

fn clone(&self) -> IndexVerify

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for IndexVerify

Source§

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

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

impl Eq for IndexVerify

Source§

impl PartialEq for IndexVerify

Source§

fn eq(&self, other: &IndexVerify) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for IndexVerify

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> 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.