pub struct Column<'b> { /* private fields */ }Expand description
Borrowed view of a block column.
Implementations§
Source§impl<'b> Column<'b>
impl<'b> Column<'b>
pub fn layout(&self) -> Option<ColumnLayout>
pub fn n_rows(&self) -> usize
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
Validates array offsets and LowCardinality dictionary indexes.
Validation includes nested columns and returns
ErrorKind::Protocol for invalid data.
Sourcepub fn fixed(&self) -> Option<(usize, &'b [u8])>
pub fn fixed(&self) -> Option<(usize, &'b [u8])>
Returns element width and little-endian data for a fixed-width column.
Sourcepub fn string(&self) -> Option<(&'b [u64], &'b [u8])>
pub fn string(&self) -> Option<(&'b [u64], &'b [u8])>
Returns offsets and bytes for a string column.
Each offset is exclusive end of corresponding row in host byte order. Layout also represents string-encoded JSON and LowCardinality dictionaries.
pub fn null_map(&self) -> Option<&'b [u8]>
pub fn nullable_inner(&self) -> Option<Column<'b>>
pub fn array_offsets(&self) -> Option<&'b [u64]>
pub fn array_values(&self) -> Option<Column<'b>>
pub fn tuple_arity(&self) -> usize
pub fn tuple_child(&self, i: usize) -> Option<Column<'b>>
Sourcepub fn low_cardinality(&self) -> Option<LowCardinalityView<'b>>
pub fn low_cardinality(&self) -> Option<LowCardinalityView<'b>>
Returns keys and dictionary for a LowCardinality column.
Trait Implementations§
Auto Trait Implementations§
impl<'b> !Send for Column<'b>
impl<'b> !Sync for Column<'b>
impl<'b> Freeze for Column<'b>
impl<'b> RefUnwindSafe for Column<'b>
impl<'b> Unpin for Column<'b>
impl<'b> UnsafeUnpin for Column<'b>
impl<'b> UnwindSafe for Column<'b>
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