pub enum FactorizationState {
Flat {
row_count: usize,
},
Unflat {
level_count: usize,
logical_rows: usize,
},
}Expand description
Factorization state of a chunk (flat vs factorized).
Similar to LadybugDB’s FStateType, this provides a single source
of truth for the chunk’s factorization status.
Variants§
Flat
All vectors are flat - one value per logical row.
This is the state after flattening or for simple scans.
Unflat
One or more vectors are unflat - values grouped by parent.
The chunk has multi-level structure.
Implementations§
Source§impl FactorizationState
impl FactorizationState
Sourcepub fn logical_row_count(&self) -> usize
pub fn logical_row_count(&self) -> usize
Returns the logical row count.
Sourcepub fn level_count(&self) -> usize
pub fn level_count(&self) -> usize
Returns the number of factorization levels.
Trait Implementations§
Source§impl Clone for FactorizationState
impl Clone for FactorizationState
Source§fn clone(&self) -> FactorizationState
fn clone(&self) -> FactorizationState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FactorizationState
impl Debug for FactorizationState
Source§impl PartialEq for FactorizationState
impl PartialEq for FactorizationState
impl Copy for FactorizationState
impl Eq for FactorizationState
impl StructuralPartialEq for FactorizationState
Auto Trait Implementations§
impl Freeze for FactorizationState
impl RefUnwindSafe for FactorizationState
impl Send for FactorizationState
impl Sync for FactorizationState
impl Unpin for FactorizationState
impl UnwindSafe for FactorizationState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.