pub struct SamplingCompressor<'a> { /* private fields */ }Implementations§
Source§impl<'a> SamplingCompressor<'a>
impl<'a> SamplingCompressor<'a>
pub fn new(compressors: HashSet<CompressorRef<'a>>) -> Self
pub fn new_with_options( compressors: HashSet<CompressorRef<'a>>, options: CompressConfig, ) -> Self
pub fn named(&self, name: &str) -> Self
pub fn auxiliary(&self, name: &str) -> Self
pub fn for_compressor(&self, compression: &dyn EncodingCompressor) -> Self
pub fn options(&self) -> &CompressConfig
pub fn excluding(&self, compressor: CompressorRef<'a>) -> Self
pub fn including(&self, compressor: CompressorRef<'a>) -> Self
pub fn compress( &self, arr: &Array, like: Option<&CompressionTree<'a>>, ) -> VortexResult<CompressedArray<'a>>
pub fn compress_validity(&self, validity: Validity) -> VortexResult<Validity>
pub fn compress_array(&self, array: &Array) -> VortexResult<CompressedArray<'a>>
Trait Implementations§
Source§impl<'a> Clone for SamplingCompressor<'a>
impl<'a> Clone for SamplingCompressor<'a>
Source§fn clone(&self) -> SamplingCompressor<'a>
fn clone(&self) -> SamplingCompressor<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CompressionStrategy for SamplingCompressor<'_>
impl CompressionStrategy for SamplingCompressor<'_>
fn compress(&self, array: &Array) -> VortexResult<Array>
fn used_encodings(&self) -> HashSet<EncodingRef>
Source§impl<'a> Debug for SamplingCompressor<'a>
impl<'a> Debug for SamplingCompressor<'a>
Source§impl Default for SamplingCompressor<'_>
impl Default for SamplingCompressor<'_>
Auto Trait Implementations§
impl<'a> Freeze for SamplingCompressor<'a>
impl<'a> !RefUnwindSafe for SamplingCompressor<'a>
impl<'a> Send for SamplingCompressor<'a>
impl<'a> Sync for SamplingCompressor<'a>
impl<'a> Unpin for SamplingCompressor<'a>
impl<'a> !UnwindSafe for SamplingCompressor<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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