pub struct Block { /* private fields */ }Expand description
Decoded Native block.
Value releases its memory with allocator used during decoding.
Implementations§
Source§impl Block
impl Block
pub fn n_rows(&self) -> usize
pub fn n_columns(&self) -> usize
Sourcepub fn column_name(&self, i: usize) -> Option<&[u8]>
pub fn column_name(&self, i: usize) -> Option<&[u8]>
Returns column name bytes without UTF-8 validation.
pub fn column_type(&self, i: usize) -> Option<TypeRef<'_>>
pub fn column(&self, i: usize) -> Option<Column<'_>>
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
Validates structural relationships within every column.
Validation checks array offset order and LowCardinality dictionary indexes. Call this method before using offsets or keys from untrusted data as indexes.
Runtime cost is proportional to row count.
Sourcepub fn is_overflows(&self) -> bool
pub fn is_overflows(&self) -> bool
Returns server flag marking a block truncated by max_rows_to_group_by
with group_by_overflow_mode = 'any'.
Sourcepub fn bucket_num(&self) -> i32
pub fn bucket_num(&self) -> i32
Returns two-level aggregation bucket, or -1 when not applicable.
Trait Implementations§
Auto Trait Implementations§
impl !Sync for Block
impl Freeze for Block
impl RefUnwindSafe for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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