Docs.rs
  • lance-index-0.10.13
    • lance-index 0.10.13
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • Xuanwo
    • eddyxu
    • wjones127
    • changhiskhan
    • westonpace
    • github:lancedb:release
    • lance-community
    • Dependencies
      • arrow ^50.0.0 normal
      • arrow-array ^50.0 normal
      • arrow-ord ^50.0 normal
      • arrow-schema ^50.0 normal
      • arrow-select ^50.0 normal
      • async-recursion ^1.0 normal
      • async-trait ^0.1 normal
      • datafusion ^36.0.0 normal
      • datafusion-common ^36.0 normal
      • datafusion-expr ^36.0 normal
      • datafusion-physical-expr ^36.0 normal
      • datafusion-sql ^36.0 normal
      • futures ^0.3 normal
      • half =2.3.1 normal
      • itertools ^0.12 normal
      • lance-arrow =0.10.13 normal
      • lance-core =0.10.13 normal
      • lance-datafusion =0.10.13 normal
      • lance-file =0.10.13 normal
      • lance-io =0.10.13 normal
      • lance-linalg =0.10.13 normal
      • lance-table =0.10.13 normal
      • lazy_static ^1 normal
      • log ^0.4 normal
      • num-traits ^0.2 normal
      • num_cpus ^1.0 normal
      • object_store ^0.9.0 normal
      • prost ^0.12.2 normal
      • rand ^0.8.3 normal
      • roaring ^0.10.1 normal
      • serde ^1 normal
      • serde_json ^1 normal
      • snafu ^0.7.4 normal
      • tempfile ^3 normal
      • tokio ^1.23 normal
      • tracing ^0.1 normal
      • approx ^0.5.1 dev
      • clap ^4 dev
      • criterion ^0.5 dev
      • datafusion-sql ^36.0 dev
      • lance-datagen =0.10.13 dev
      • lance-testing =0.10.13 dev
      • pprof ^0.13 dev
      • tempfile ^3 dev
      • prost-build ^0.12.2 build
      • rustc_version ^0.4 build
    • Versions
    • 62.08% of the crate is documented
  • Go to latest version
  • Platform
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

lance_index0.10.13

Quantization

Required Associated Types

  • Metadata
  • Storage

Required Methods

  • code_dim
  • column
  • metadata
  • metadata_key
  • quantization_type

Implementors

In lance_index::vector::quantizer

?
Settings

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>;
}

Required Associated Types§

source

type Metadata: QuantizerMetadata + Send + Sync

source

type Storage: QuantizerStorage<Metadata = Self::Metadata> + VectorStorage

Required Methods§

source

fn code_dim(&self) -> usize

source

fn column(&self) -> &'static str

source

fn metadata_key(&self) -> &'static str

source

fn quantization_type(&self) -> QuantizationType

source

fn metadata(&self, _: Option<QuantizationMetadata>) -> Result<Value>

Implementors§

source§

impl Quantization for ScalarQuantizer

§

type Metadata = ScalarQuantizationMetadata

§

type Storage = ScalarQuantizationStorage

source§

impl Quantization for dyn ProductQuantizer

§

type Metadata = ProductQuantizationMetadata

§

type Storage = ProductQuantizationStorage

source§

impl<T: ArrowFloatType + Dot + L2 + 'static> Quantization for ProductQuantizerImpl<T>

§

type Metadata = ProductQuantizationMetadata

§

type Storage = ProductQuantizationStorage