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§
Sourcefn compress_canonical(
&self,
array: Canonical,
ctx: CompressorContext,
excludes: Excludes<'_>,
) -> VortexResult<ArrayRef>
fn compress_canonical( &self, array: Canonical, ctx: CompressorContext, excludes: Excludes<'_>, ) -> VortexResult<ArrayRef>
Compresses a canonical array with the specified options.
Sourcefn int_schemes(&self) -> &[&'static dyn IntegerScheme]
fn int_schemes(&self) -> &[&'static dyn IntegerScheme]
Returns the enabled integer compression schemes.
Sourcefn float_schemes(&self) -> &[&'static dyn FloatScheme]
fn float_schemes(&self) -> &[&'static dyn FloatScheme]
Returns the enabled float compression schemes.
Sourcefn string_schemes(&self) -> &[&'static dyn StringScheme]
fn string_schemes(&self) -> &[&'static dyn StringScheme]
Returns the enabled string compression schemes.