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 compress( &self, arr: &Array, like: Option<&CompressionTree<'a>>, ) -> VortexResult<CompressedArray<'a>>
pub fn compress_validity(&self, validity: Validity) -> VortexResult<Validity>
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.6.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