Skip to main content

HotCandidateInspection

Enum HotCandidateInspection 

Source
pub enum HotCandidateInspection {
    Hit(Row),
    MissingRow,
    Invisible,
    Tombstone,
    TtlExpired,
    PrimaryKeyMismatch {
        materialized_pk: Vec<u8>,
        requested: Vec<u8>,
    },
}
Expand description

Diagnostic classification of a HOT (Hash-Organized Table) candidate row.

Table::get collapses several distinct failure modes into None (tombstone, TTL expiry, snapshot invisibility). To preserve observability across every HOT fallback path, [Table::resolve_pk_with_hot_fallback] inspects the candidate directly and tags the failure with one of these reasons before delegating to the PK equality scanner.

PrimaryKeyMismatch carries the mismatched bytes for diagnostics — the materialized_pk is the value read from the row’s PK column and requested is the lookup key bytes (after HMAC tokenization). Neither is used as the authoritative result; the fallback scanner is the only source of the returned row set.

Variants§

§

Hit(Row)

Mapped RowId materialized, is visible, live, TTL-valid, and carries the requested PK. The branch may return this row without a fallback.

§

MissingRow

Row does not exist at the mapped RowId — overlay and all runs returned no version. The base row was removed entirely.

§

Invisible

Row exists but is stamped with a (committed_epoch, commit_ts) that the calling Snapshot does not observe. Distinct from a tombstone: the row may still be visible at a later snapshot.

§

Tombstone

The newest visible row at the mapped RowId is a tombstone (deleted = true). A replacement row with the same PK may exist elsewhere — the scanner is responsible for finding it.

§

TtlExpired

The newest visible row exists and is not deleted, but the row’s TTL metadata says the row expired at the calling wall clock. Distinct from Tombstone: the row is still durable, just hidden by TTL.

§

PrimaryKeyMismatch

Row materialized with valid visibility/TTL, but its materialized PK does not match the requested PK bytes. The HOT map is stale and must not return this row — only the scanner’s verified result is returned.

Fields

§materialized_pk: Vec<u8>

PK bytes encoded from the materialized row’s PK column.

§requested: Vec<u8>

PK bytes that the caller requested (post-HMAC tokenization).

Trait Implementations§

Source§

impl Clone for HotCandidateInspection

Source§

fn clone(&self) -> HotCandidateInspection

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 HotCandidateInspection

Source§

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

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

impl PartialEq for HotCandidateInspection

Source§

fn eq(&self, other: &HotCandidateInspection) -> 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 HotCandidateInspection

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.