Struct lance_encoding::encoder::EncodedBuffer
source · pub struct EncodedBuffer {
pub is_data: bool,
pub parts: Vec<Buffer>,
}Expand description
An encoded buffer
Fields§
§is_data: boolIf true, the buffer should be stored as “data” If false, the buffer should be stored as “metadata”
Metadata buffers are typically small buffers that should be cached. For example, this might be a small dictionary when data has been dictionary encoded. Or it might contain a skip block when data has been RLE encoded.
parts: Vec<Buffer>Buffers that make up the encoded buffer
All of these buffers should be written to the file as one contiguous buffer
This is a Vec to allow for zero-copy
For example, if we are asked to write 3 primitive arrays of 1000 rows and we can write them all as one page then this will be the value buffers from the 3 primitive arrays
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EncodedBuffer
impl RefUnwindSafe for EncodedBuffer
impl Send for EncodedBuffer
impl Sync for EncodedBuffer
impl Unpin for EncodedBuffer
impl UnwindSafe for EncodedBuffer
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