Skip to main content

Condition

Enum Condition 

Source
pub enum Condition {
    Pk(Vec<u8>),
    BitmapEq {
        column_id: u16,
        value: Vec<u8>,
    },
    BitmapIn {
        column_id: u16,
        values: Vec<Vec<u8>>,
    },
    Ann {
        column_id: u16,
        query: Vec<f32>,
        k: usize,
    },
    FmContains {
        column_id: u16,
        pattern: Vec<u8>,
    },
    FmContainsAll {
        column_id: u16,
        patterns: Vec<Vec<u8>>,
    },
    Range {
        column_id: u16,
        lo: i64,
        hi: i64,
    },
    RangeF64 {
        column_id: u16,
        lo: f64,
        lo_inclusive: bool,
        hi: f64,
        hi_inclusive: bool,
    },
    SparseMatch {
        column_id: u16,
        query: Vec<(u32, f32)>,
        k: usize,
    },
    MinHashSimilar {
        column_id: u16,
        query: Vec<u64>,
        k: usize,
    },
    IsNull {
        column_id: u16,
    },
    IsNotNull {
        column_id: u16,
    },
}
Expand description

One predicate over the row-id space.

Variants§

§

Pk(Vec<u8>)

Primary-key exact match (encoded key bytes).

§

BitmapEq

Low-cardinality equality via the roaring bitmap index.

Fields

§column_id: u16
§value: Vec<u8>
§

BitmapIn

Multi-value equality via the roaring bitmap index (Phase 13.5). Resolves to the union of bitmap[col].get(v) for each value — the index- accelerated equivalent of col IN (v1, v2, …) or a semi-join’s runtime value set.

Fields

§column_id: u16
§values: Vec<Vec<u8>>
§

Ann

Semantic search via the binary-quantized ANN index.

Fields

§column_id: u16
§query: Vec<f32>
§

FmContains

Arbitrary substring via the FM index (no tokenization).

Fields

§column_id: u16
§pattern: Vec<u8>
§

FmContainsAll

Multi-segment FM intersection for LIKE '%seg1%seg2%...' (Priority 12). Resolves to the intersection of FM lookups for each segment — a much tighter superset than the single longest segment. DataFusion still re-applies the real wildcard semantics (Inexact pushdown).

Fields

§column_id: u16
§patterns: Vec<Vec<u8>>
§

Range

Inclusive integer range (served by scanning the int column, later by the learned PGM index / page-index pruning). Exclusive bounds (>,<) are expressed exactly via ±1 in the translator.

Fields

§column_id: u16
§lo: i64
§hi: i64
§

RangeF64

Floating-point range with per-bound inclusivity (exact for >/</>=/ <=/BETWEEN), served the same way as Condition::Range.

Fields

§column_id: u16
§lo: f64
§lo_inclusive: bool
§hi: f64
§hi_inclusive: bool
§

SparseMatch

SPLADE-style sparse retrieval: top-k row ids by sparse dot product over shared tokens. query is a sparse vector (token id → weight).

Fields

§column_id: u16
§query: Vec<(u32, f32)>
§

MinHashSimilar

MinHash/LSH set-similarity: candidate row ids whose set is similar to query (a set of 64-bit token hashes), ranked by estimated Jaccard, truncated to k. Approximate (LSH recall) — the caller re-verifies.

Fields

§column_id: u16
§query: Vec<u64>
§

IsNull

Rows where column_id is NULL. Resolved by decoding the column and collecting null positions — a column scan, but no row materialization. Page-stat aware: pages with null_count == 0 are skipped.

Fields

§column_id: u16
§

IsNotNull

Rows where column_id is NOT NULL. The complement of Self::IsNull. Page-stat aware: pages with null_count == row_count are skipped.

Fields

§column_id: u16

Trait Implementations§

Source§

impl Clone for Condition

Source§

fn clone(&self) -> Condition

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 Condition

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