pub struct CompressedBufferEncoder { /* private fields */ }Implementations§
Source§impl CompressedBufferEncoder
impl CompressedBufferEncoder
pub fn new(compression_config: CompressionConfig) -> Self
pub fn from_scheme(scheme: &str) -> Result<Self>
Source§impl CompressedBufferEncoder
impl CompressedBufferEncoder
pub fn per_value_compress<T: ArrowNativeType>( &self, data: &[u8], offsets: &[T], compressed: &mut Vec<u8>, ) -> Result<LanceBuffer>
pub fn per_value_decompress<T: ArrowNativeType>( &self, data: &[u8], offsets: &[T], decompressed: &mut Vec<u8>, ) -> Result<LanceBuffer>
Trait Implementations§
Source§impl Debug for CompressedBufferEncoder
impl Debug for CompressedBufferEncoder
Source§impl Default for CompressedBufferEncoder
impl Default for CompressedBufferEncoder
Source§impl PerValueCompressor for CompressedBufferEncoder
impl PerValueCompressor for CompressedBufferEncoder
Source§fn compress(
&self,
data: DataBlock,
) -> Result<(PerValueDataBlock, ArrayEncoding)>
fn compress( &self, data: DataBlock, ) -> Result<(PerValueDataBlock, ArrayEncoding)>
Compress the data into a single buffer Read more
Source§impl VariablePerValueDecompressor for CompressedBufferEncoder
impl VariablePerValueDecompressor for CompressedBufferEncoder
Source§fn decompress(&self, data: VariableWidthBlock) -> Result<DataBlock>
fn decompress(&self, data: VariableWidthBlock) -> Result<DataBlock>
Decompress one or more values
Auto Trait Implementations§
impl Freeze for CompressedBufferEncoder
impl !RefUnwindSafe for CompressedBufferEncoder
impl Send for CompressedBufferEncoder
impl Sync for CompressedBufferEncoder
impl Unpin for CompressedBufferEncoder
impl !UnwindSafe for CompressedBufferEncoder
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