pub struct SegmentMeta {
pub id: String,
pub num_vectors: u32,
pub deleted: Vec<u64>,
}Expand description
One segment of an index.
Fields§
§id: StringNames its files: seg_<id>.mmap.
num_vectors: u32Vectors written into it (before its deletions).
deleted: Vec<u64>Ids deleted from it since it was written. Sorted, unique.
Implementations§
Source§impl SegmentMeta
impl SegmentMeta
Sourcepub fn live_vectors(&self) -> usize
pub fn live_vectors(&self) -> usize
Vectors this segment still answers for.
Trait Implementations§
Source§impl Clone for SegmentMeta
impl Clone for SegmentMeta
Source§fn clone(&self) -> SegmentMeta
fn clone(&self) -> SegmentMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SegmentMeta
impl Debug for SegmentMeta
Source§impl<'de> Deserialize<'de> for SegmentMeta
impl<'de> Deserialize<'de> for SegmentMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SegmentMeta
impl RefUnwindSafe for SegmentMeta
impl Send for SegmentMeta
impl Sync for SegmentMeta
impl Unpin for SegmentMeta
impl UnsafeUnpin for SegmentMeta
impl UnwindSafe for SegmentMeta
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