pub struct NbcRow {
pub null_bitmap: Vec<u8>,
pub data: Bytes,
}Expand description
Null bitmap compressed row.
Fields§
§null_bitmap: Vec<u8>Null bitmap.
data: BytesRaw non-null column values.
Implementations§
Source§impl NbcRow
impl NbcRow
Sourcepub fn decode(
src: &mut impl Buf,
metadata: &ColMetaData,
) -> Result<Self, ProtocolError>
pub fn decode( src: &mut impl Buf, metadata: &ColMetaData, ) -> Result<Self, ProtocolError>
Decode an NBCROW token from bytes.
NBCROW (Null Bitmap Compressed Row) stores a bitmap indicating which columns are NULL, followed by only the non-NULL values.
Sourcepub fn decode_prefix(
src: &mut impl Buf,
metadata: &ColMetaData,
prefix_len: usize,
) -> Result<Self, ProtocolError>
pub fn decode_prefix( src: &mut impl Buf, metadata: &ColMetaData, prefix_len: usize, ) -> Result<Self, ProtocolError>
Decode the null bitmap and the first prefix_len columns of an NBCROW,
leaving src positioned at column prefix_len’s value (when that column
is non-NULL per the bitmap). The returned row carries the full bitmap and
the leading non-NULL values; query the trailing column’s nullness with
is_null.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for NbcRow
impl RefUnwindSafe for NbcRow
impl Send for NbcRow
impl Sync for NbcRow
impl Unpin for NbcRow
impl UnsafeUnpin for NbcRow
impl UnwindSafe for NbcRow
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