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.