Skip to main content

CanonicalCompressor

Trait CanonicalCompressor 

Source
pub trait CanonicalCompressor {
    // Required methods
    fn compress_canonical(
        &self,
        array: Canonical,
        ctx: CompressorContext,
        excludes: Excludes<'_>,
    ) -> VortexResult<ArrayRef>;
    fn int_schemes(&self) -> &[&'static dyn IntegerScheme];
    fn float_schemes(&self) -> &[&'static dyn FloatScheme];
    fn string_schemes(&self) -> &[&'static dyn StringScheme];
}
Expand description

Trait for compressors that can compress canonical arrays.

Provides access to configured compression schemes and the ability to compress canonical arrays recursively.

Required Methods§

Source

fn compress_canonical( &self, array: Canonical, ctx: CompressorContext, excludes: Excludes<'_>, ) -> VortexResult<ArrayRef>

Compresses a canonical array with the specified options.

Source

fn int_schemes(&self) -> &[&'static dyn IntegerScheme]

Returns the enabled integer compression schemes.

Source

fn float_schemes(&self) -> &[&'static dyn FloatScheme]

Returns the enabled float compression schemes.

Source

fn string_schemes(&self) -> &[&'static dyn StringScheme]

Returns the enabled string compression schemes.

Implementors§