pub struct VariableWidthBlock {
pub data: LanceBuffer,
pub offsets: LanceBuffer,
pub bits_per_offset: u8,
pub num_values: u64,
pub block_info: BlockInfo,
}
Expand description
A data block for variable-width data (e.g. strings, packed rows, etc.)
Fields§
§data: LanceBuffer
The data buffer
offsets: LanceBuffer
The offsets buffer (contains num_values + 1 offsets)
Offsets MUST start at 0
bits_per_offset: u8
The number of bits per offset
num_values: u64
The number of values represented by this block
block_info: BlockInfo
Implementations§
Trait Implementations§
Source§impl ComputeStat for VariableWidthBlock
impl ComputeStat for VariableWidthBlock
fn compute_stat(&mut self)
Source§impl Debug for VariableWidthBlock
impl Debug for VariableWidthBlock
Auto Trait Implementations§
impl Freeze for VariableWidthBlock
impl RefUnwindSafe for VariableWidthBlock
impl Send for VariableWidthBlock
impl Sync for VariableWidthBlock
impl Unpin for VariableWidthBlock
impl UnwindSafe for VariableWidthBlock
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more