Trait lance_index::vector::quantizer::Quantization
source · pub trait Quantization {
type Metadata: QuantizerMetadata + Send + Sync;
type Storage: QuantizerStorage<Metadata = Self::Metadata> + VectorStorage;
// Required methods
fn code_dim(&self) -> usize;
fn column(&self) -> &'static str;
fn metadata_key(&self) -> &'static str;
fn quantization_type(&self) -> QuantizationType;
fn metadata(&self, _: Option<QuantizationMetadata>) -> Result<Value>;
}