Trait FixedPerValueDecompressor

Source
pub trait FixedPerValueDecompressor:
    Debug
    + Send
    + Sync {
    // Required methods
    fn decompress(
        &self,
        data: FixedWidthDataBlock,
        num_values: u64,
    ) -> Result<DataBlock>;
    fn bits_per_value(&self) -> u64;
}

Required Methods§

Source

fn decompress( &self, data: FixedWidthDataBlock, num_values: u64, ) -> Result<DataBlock>

Decompress one or more values

Source

fn bits_per_value(&self) -> u64

The number of bits in each value

Currently (and probably long term) this must be a multiple of 8

Implementors§