pub struct VectorCollectionStats {
pub vector_count: usize,
pub dimensions: usize,
pub distance: Distance,
pub memory_usage: usize,
pub layer_count: usize,
pub lazy_embedding: bool,
pub compression: Option<CompressionMode>,
pub anchor_count: Option<usize>,
pub delta_count: Option<usize>,
}Expand description
Runtime statistics for a vector collection.
Fields§
§vector_count: usizeTotal number of vectors stored.
dimensions: usizePer-vector dimensionality.
distance: DistanceDistance metric in use.
memory_usage: usizeApproximate memory usage in bytes.
layer_count: usizeNumber of HNSW layers in the index.
lazy_embedding: boolWhether lazy embedding is enabled.
compression: Option<CompressionMode>Active compression mode (if any).
anchor_count: Option<usize>Number of anchor vectors (delta/quantised modes only).
delta_count: Option<usize>Number of delta vectors (delta/quantised modes only).
Implementations§
Source§impl VectorCollectionStats
impl VectorCollectionStats
Sourcepub fn from_value(v: &Value) -> Option<Self>
pub fn from_value(v: &Value) -> Option<Self>
Deserialise from the JSON object returned by keradb_vector_stats.
Trait Implementations§
Source§impl Clone for VectorCollectionStats
impl Clone for VectorCollectionStats
Source§fn clone(&self) -> VectorCollectionStats
fn clone(&self) -> VectorCollectionStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VectorCollectionStats
impl Debug for VectorCollectionStats
Auto Trait Implementations§
impl Freeze for VectorCollectionStats
impl RefUnwindSafe for VectorCollectionStats
impl Send for VectorCollectionStats
impl Sync for VectorCollectionStats
impl Unpin for VectorCollectionStats
impl UnsafeUnpin for VectorCollectionStats
impl UnwindSafe for VectorCollectionStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more