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 including_only(&self, compressors: &[CompressorRef<'a>]) -> Self
pub fn is_enabled(&self, compressor: CompressorRef<'a>) -> bool
pub fn compress( &self, arr: &ArrayData, like: Option<&CompressionTree<'a>>, ) -> VortexResult<CompressedArray<'a>>
pub fn compress_validity(&self, validity: Validity) -> VortexResult<Validity>
pub fn compress_patches(&self, patches: Patches) -> VortexResult<Patches>
Trait Implementations§
source§impl<'a, 'b: 'a> Arbitrary<'a> for SamplingCompressor<'b>
impl<'a, 'b: 'a> Arbitrary<'a> for SamplingCompressor<'b>
source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§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<'_>
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
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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