pub struct GeneralBlockDecompressor { /* private fields */ }Expand description
A block decompressor that first applies general-purpose compression (LZ4/Zstd) before delegating to an inner block decompressor.
Implementations§
Source§impl GeneralBlockDecompressor
impl GeneralBlockDecompressor
pub fn try_new( inner: Box<dyn BlockDecompressor>, compression: CompressionConfig, ) -> Result<Self>
Trait Implementations§
Source§impl BlockDecompressor for GeneralBlockDecompressor
impl BlockDecompressor for GeneralBlockDecompressor
fn decompress(&self, data: LanceBuffer, num_values: u64) -> Result<DataBlock>
Auto Trait Implementations§
impl Freeze for GeneralBlockDecompressor
impl !RefUnwindSafe for GeneralBlockDecompressor
impl Send for GeneralBlockDecompressor
impl Sync for GeneralBlockDecompressor
impl Unpin for GeneralBlockDecompressor
impl UnsafeUnpin for GeneralBlockDecompressor
impl !UnwindSafe for GeneralBlockDecompressor
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