pub enum ChunkVariant {
Flat(DataChunk),
Factorized(FactorizedChunk),
}Expand description
A chunk that can be either flat (DataChunk) or factorized (FactorizedChunk).
Variants§
Flat(DataChunk)
A flat chunk with all rows materialized.
Factorized(FactorizedChunk)
A factorized chunk with multi-level representation.
Implementations§
Source§impl ChunkVariant
impl ChunkVariant
Sourcepub fn factorized(chunk: FactorizedChunk) -> Self
pub fn factorized(chunk: FactorizedChunk) -> Self
Creates a factorized variant from a FactorizedChunk.
Sourcepub fn ensure_flat(self) -> DataChunk
pub fn ensure_flat(self) -> DataChunk
Ensures the chunk is flat, flattening if necessary.
Sourcepub fn logical_row_count(&self) -> usize
pub fn logical_row_count(&self) -> usize
Returns the logical row count.
Sourcepub fn is_factorized(&self) -> bool
pub fn is_factorized(&self) -> bool
Returns true if this is a factorized chunk.
Trait Implementations§
Source§impl Clone for ChunkVariant
impl Clone for ChunkVariant
Source§fn clone(&self) -> ChunkVariant
fn clone(&self) -> ChunkVariant
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 ChunkVariant
impl Debug for ChunkVariant
Source§impl From<DataChunk> for ChunkVariant
impl From<DataChunk> for ChunkVariant
Source§impl From<FactorizedChunk> for ChunkVariant
impl From<FactorizedChunk> for ChunkVariant
Source§fn from(chunk: FactorizedChunk) -> Self
fn from(chunk: FactorizedChunk) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChunkVariant
impl RefUnwindSafe for ChunkVariant
impl Send for ChunkVariant
impl Sync for ChunkVariant
impl Unpin for ChunkVariant
impl UnwindSafe for ChunkVariant
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