pub struct InlineBitpacking { /* private fields */ }Implementations§
Source§impl InlineBitpacking
impl InlineBitpacking
pub fn new(uncompressed_bit_width: u64) -> Self
pub fn from_description(description: &InlineBitpacking) -> Self
Sourcepub fn min_size_bytes(compressed_bit_width: u64) -> u64
pub fn min_size_bytes(compressed_bit_width: u64) -> u64
The minimum number of bytes required to actually get compression
We have to compress in blocks of 1024 values. For example, we can compress 500 2-byte (1000 bytes) values into 1024 2-bit values (256 bytes) for a win but we don’t want to compress 10 2-byte values into 1024 2-bit values because that’s not a win.
Trait Implementations§
Source§impl BlockCompressor for InlineBitpacking
impl BlockCompressor for InlineBitpacking
Source§impl BlockDecompressor for InlineBitpacking
impl BlockDecompressor for InlineBitpacking
fn decompress(&self, data: LanceBuffer, num_values: u64) -> Result<DataBlock>
Source§impl Debug for InlineBitpacking
impl Debug for InlineBitpacking
Source§impl Default for InlineBitpacking
impl Default for InlineBitpacking
Source§fn default() -> InlineBitpacking
fn default() -> InlineBitpacking
Returns the “default value” for a type. Read more
Source§impl MiniBlockCompressor for InlineBitpacking
impl MiniBlockCompressor for InlineBitpacking
Source§fn compress(
&self,
chunk: DataBlock,
) -> Result<(MiniBlockCompressed, CompressiveEncoding)>
fn compress( &self, chunk: DataBlock, ) -> Result<(MiniBlockCompressed, CompressiveEncoding)>
Compress a
page of data into multiple chunks Read moreSource§impl MiniBlockDecompressor for InlineBitpacking
impl MiniBlockDecompressor for InlineBitpacking
fn decompress( &self, data: Vec<LanceBuffer>, num_values: u64, ) -> Result<DataBlock>
Auto Trait Implementations§
impl Freeze for InlineBitpacking
impl RefUnwindSafe for InlineBitpacking
impl Send for InlineBitpacking
impl Sync for InlineBitpacking
impl Unpin for InlineBitpacking
impl UnsafeUnpin for InlineBitpacking
impl UnwindSafe for InlineBitpacking
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