velesdb-core 1.13.7

High-performance vector database engine written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! TRAIN QUANTIZER statement AST node.

use std::collections::HashMap;

use serde::{Deserialize, Serialize};

use super::WithValue;

/// A TRAIN QUANTIZER statement.
///
/// Represents: `TRAIN QUANTIZER ON <collection> WITH (m=8, k=256, ...)`
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct TrainStatement {
    /// Target collection name.
    pub collection: String,
    /// Training parameters (m, k, type, oversampling, sample, force, etc.).
    pub params: HashMap<String, WithValue>,
}