pub trait PerValueDecompressor:
Debug
+ Send
+ Sync {
// Required methods
fn decompress(
&self,
data: LanceBuffer,
num_values: u64,
) -> Result<DataBlock>;
fn bits_per_value(&self) -> u64;
}
Required Methods§
Sourcefn decompress(&self, data: LanceBuffer, num_values: u64) -> Result<DataBlock>
fn decompress(&self, data: LanceBuffer, num_values: u64) -> Result<DataBlock>
Decompress one or more values
Sourcefn bits_per_value(&self) -> u64
fn bits_per_value(&self) -> u64
The number of bits in each value
Returns 0 if the data type is variable-width
Currently (and probably long term) this must be a multiple of 8