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§
Sourcefn compress(&self, array: &dyn Array) -> VortexResult<ArrayRef>
fn compress(&self, array: &dyn Array) -> VortexResult<ArrayRef>
Compress input array.
Sourcefn used_encodings(&self) -> HashSet<EncodingId>
fn used_encodings(&self) -> HashSet<EncodingId>
A set of the IDs of the encodings the compressor can choose from.