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§
fn compress_chunk(&self, chunk: &dyn Array) -> VortexResult<ArrayRef>
Implementations on Foreign Types§
Source§impl CompressorPlugin for Arc<dyn CompressorPlugin>
impl CompressorPlugin for Arc<dyn CompressorPlugin>
fn compress_chunk(&self, chunk: &dyn Array) -> VortexResult<ArrayRef>
Source§impl CompressorPlugin for BtrBlocksCompressor
impl CompressorPlugin for BtrBlocksCompressor
fn compress_chunk(&self, chunk: &dyn Array) -> VortexResult<ArrayRef>
Implementors§
impl CompressorPlugin for CompactCompressor
Available on crate feature
zstd only.