Skip to main content

SinglePartitionCompaction

Enum SinglePartitionCompaction 

Source
pub enum SinglePartitionCompaction {
    DefinitelyAbsent,
    IndexUnavailable,
    Rows(Vec<CompactionRow>),
}
Expand description

Outcome of a single-partition candidate probe against one SSTable.

The three-way absence-vs-failure invariant (roborev, issue #2207 — state this here, not just in prose elsewhere, since it is the correctness spine every caller relies on):

  • DefinitelyAbsent is returned ONLY on an exact presence-oracle negative (a bloom might_contain == false, or a BTI trie miss) — the ONE case that may prune a candidate SSTable from the read.
  • IndexUnavailable is returned for EVERY OTHER kind of resolution/read anomaly: no random-access index at all, an inconclusive BIG Index.db miss (#1572), an unreadable/corrupt index (a BTI trie parse error or an Index.db read error — roborev IMPORTANT-1), an un-boundable last partition, or a resolved offset the materialized window never reached (a bad end bound / truncated-SSTable shape — roborev MEDIUM). None of these may EVER collapse to DefinitelyAbsent or an empty Rows — only a genuine, fully-materialized decode may report absence.
  • Rows is returned only once a seek has been FULLY EXECUTED (the window reached and covered the target partition’s bytes end-to-end) — an empty Vec here means a confirmed prefix-collision candidate for an absent key, decoded and verified, not “we could not tell.”

Variants§

§

DefinitelyAbsent

The presence oracle proved the key is definitively absent from this SSTable (an exact bloom negative, or a BTI trie miss). The candidate is pruned; cqlite.read.sstables_pruned was already incremented by the oracle. Never returned when presence is positive, unknown, or the index is missing.

§

IndexUnavailable

The key MIGHT be present but this SSTable has no usable random-access index (Summary/Index absent, a #1572-style inconclusive index miss, an unreadable/corrupt index, or a resolved offset the window never reached). The caller MUST read this SSTable — scanning its partitions and filtering to the key — never skip it. Degrades speed, never correctness (#2295).

§

Rows(Vec<CompactionRow>)

The partition was seeked and decoded. rows are its compaction rows (tombstones preserved), byte-identical to the full-scan stream restricted to this partition. Empty when the resolved candidate was a prefix-collision for an absent key (authoritative empty — do NOT fall back).

Trait Implementations§

Source§

impl Debug for SinglePartitionCompaction

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

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

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more