CompressorPlugin

Trait CompressorPlugin 

Source
pub trait CompressorPlugin:
    Send
    + Sync
    + 'static {
    // Required method
    fn compress_chunk(&self, chunk: &dyn Array) -> VortexResult<ArrayRef>;
}
Expand description

A boxed compressor function from arrays into compressed arrays.

Both the balanced BtrBlocksCompressor and the size-optimized CompactCompressor meet this interface.

API consumers are also free to implement this trait to provide new plugin compressors.

Required Methods§

Source

fn compress_chunk(&self, chunk: &dyn Array) -> VortexResult<ArrayRef>

Implementations on Foreign Types§

Source§

impl CompressorPlugin for Arc<dyn CompressorPlugin>

Source§

impl CompressorPlugin for BtrBlocksCompressor

Implementors§

Source§

impl CompressorPlugin for CompactCompressor

Available on crate feature zstd only.
Source§

impl<F> CompressorPlugin for F
where F: Fn(&dyn Array) -> VortexResult<ArrayRef> + Send + Sync + 'static,