Trait CompressionStrategy

Source
pub trait CompressionStrategy {
    // Required methods
    fn compress(&self, array: &dyn Array) -> VortexResult<ArrayRef>;
    fn used_encodings(&self) -> HashSet<EncodingId>;
}
Expand description

Extendable compression interface, allowing implementations to explore different choices.

Required Methods§

Source

fn compress(&self, array: &dyn Array) -> VortexResult<ArrayRef>

Compress input array.

Source

fn used_encodings(&self) -> HashSet<EncodingId>

A set of the IDs of the encodings the compressor can choose from.

Implementors§