pub struct BlockDictionaryDecompressor { /* private fields */ }Expand description
Decodes a framed block dictionary through concrete child codecs.
Implementations§
Source§impl BlockDictionaryDecompressor
impl BlockDictionaryDecompressor
Sourcepub fn try_new(
bits_per_value: u64,
num_dictionary_items: u32,
indices: Box<dyn BlockDecompressor>,
items: Box<dyn BlockDecompressor>,
) -> Result<Self>
pub fn try_new( bits_per_value: u64, num_dictionary_items: u32, indices: Box<dyn BlockDecompressor>, items: Box<dyn BlockDecompressor>, ) -> Result<Self>
Creates a bounded dictionary decoder for u32 or u64 values.
Trait Implementations§
Source§impl BlockDecompressor for BlockDictionaryDecompressor
impl BlockDecompressor for BlockDictionaryDecompressor
fn decompress( &self, data: Option<LanceBuffer>, num_values: u64, ) -> Result<DataBlock>
Source§fn requires_payload(&self) -> bool
fn requires_payload(&self) -> bool
Whether this codec consumes one payload buffer.
Source§fn infer_num_values(&self, _data: &LanceBuffer) -> Result<Option<u64>>
fn infer_num_values(&self, _data: &LanceBuffer) -> Result<Option<u64>>
Inspect a block for an exact payload-derived value count when supported. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for BlockDictionaryDecompressor
impl !UnwindSafe for BlockDictionaryDecompressor
impl Freeze for BlockDictionaryDecompressor
impl Send for BlockDictionaryDecompressor
impl Sync for BlockDictionaryDecompressor
impl Unpin for BlockDictionaryDecompressor
impl UnsafeUnpin for BlockDictionaryDecompressor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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