pub struct HnswIndexStats {
pub vector_count: usize,
pub layer_count: usize,
pub entry_point_count: usize,
pub dimension: usize,
pub distance_metric: DistanceMetric,
pub storage_stats: VectorStorageStats,
pub layer_stats: Vec<(usize, usize, f32)>,
}Expand description
Comprehensive statistics for an HNSW index
Fields§
§vector_count: usizeTotal number of vectors in the index
layer_count: usizeNumber of layers in the hierarchical structure
entry_point_count: usizeNumber of entry points (vectors in higher layers)
dimension: usizeVector dimension
distance_metric: DistanceMetricDistance metric being used
storage_stats: VectorStorageStatsStorage backend statistics
layer_stats: Vec<(usize, usize, f32)>Per-layer statistics (node_count, total_connections, avg_connections)
Trait Implementations§
Source§impl Clone for HnswIndexStats
impl Clone for HnswIndexStats
Source§fn clone(&self) -> HnswIndexStats
fn clone(&self) -> HnswIndexStats
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 moreAuto Trait Implementations§
impl Freeze for HnswIndexStats
impl RefUnwindSafe for HnswIndexStats
impl Send for HnswIndexStats
impl Sync for HnswIndexStats
impl Unpin for HnswIndexStats
impl UnsafeUnpin for HnswIndexStats
impl UnwindSafe for HnswIndexStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more