pub struct NamespaceDeltaStore { /* private fields */ }Expand description
Delta store for a namespace
Implementations§
Source§impl NamespaceDeltaStore
impl NamespaceDeltaStore
Sourcepub fn new(config: DeltaConfig) -> Self
pub fn new(config: DeltaConfig) -> Self
Create a new delta store
Sourcepub fn upsert(&self, vector: &Vector) -> UpsertResult
pub fn upsert(&self, vector: &Vector) -> UpsertResult
Insert or update a vector
Sourcepub fn get_at_version(&self, id: &VectorId, version: u64) -> Option<Vector>
pub fn get_at_version(&self, id: &VectorId, version: u64) -> Option<Vector>
Get a vector at a specific version
Sourcepub fn get_version_info(&self, id: &VectorId) -> Option<VersionInfo>
pub fn get_version_info(&self, id: &VectorId) -> Option<VersionInfo>
Get version history for a vector
Sourcepub fn compact_all(&self) -> usize
pub fn compact_all(&self) -> usize
Compact all vectors in the store
Sourcepub fn stats(&self) -> DeltaStats
pub fn stats(&self) -> DeltaStats
Get statistics
Auto Trait Implementations§
impl !Freeze for NamespaceDeltaStore
impl !RefUnwindSafe for NamespaceDeltaStore
impl Send for NamespaceDeltaStore
impl Sync for NamespaceDeltaStore
impl Unpin for NamespaceDeltaStore
impl UnsafeUnpin for NamespaceDeltaStore
impl UnwindSafe for NamespaceDeltaStore
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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