pub struct FixedWidthDataBlock {
pub data: LanceBuffer,
pub bits_per_value: u64,
pub num_values: u64,
pub block_info: BlockInfo,
}
Expand description
A data block for a single buffer of data where each element has a fixed number of bits
Fields§
§data: LanceBuffer
The data buffer
bits_per_value: u64
The number of bits per value
num_values: u64
The number of values represented by this block
block_info: BlockInfo
Implementations§
Source§impl FixedWidthDataBlock
impl FixedWidthDataBlock
pub fn into_arrow( self, data_type: DataType, validate: bool, ) -> Result<ArrayData>
pub fn into_buffers(self) -> Vec<LanceBuffer>
pub fn borrow_and_clone(&mut self) -> Self
pub fn try_clone(&self) -> Result<Self>
pub fn data_size(&self) -> u64
Trait Implementations§
Source§impl ComputeStat for FixedWidthDataBlock
impl ComputeStat for FixedWidthDataBlock
fn compute_stat(&mut self)
Source§impl Debug for FixedWidthDataBlock
impl Debug for FixedWidthDataBlock
Source§impl GetStat for FixedWidthDataBlock
impl GetStat for FixedWidthDataBlock
Source§impl PartialEq for FixedWidthDataBlock
impl PartialEq for FixedWidthDataBlock
impl StructuralPartialEq for FixedWidthDataBlock
Auto Trait Implementations§
impl Freeze for FixedWidthDataBlock
impl RefUnwindSafe for FixedWidthDataBlock
impl Send for FixedWidthDataBlock
impl Sync for FixedWidthDataBlock
impl Unpin for FixedWidthDataBlock
impl UnwindSafe for FixedWidthDataBlock
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