pub struct DeltaStoreManager { /* private fields */ }Expand description
Manager for delta stores across namespaces
Implementations§
Source§impl DeltaStoreManager
impl DeltaStoreManager
Sourcepub fn new(config: DeltaConfig) -> Self
pub fn new(config: DeltaConfig) -> Self
Create a new manager
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create with default config
Sourcepub fn get_or_create(&self, namespace: &NamespaceId) -> bool
pub fn get_or_create(&self, namespace: &NamespaceId) -> bool
Get or create a namespace store
Sourcepub fn upsert(
&self,
namespace: &NamespaceId,
vectors: &[Vector],
) -> Vec<UpsertResult>
pub fn upsert( &self, namespace: &NamespaceId, vectors: &[Vector], ) -> Vec<UpsertResult>
Upsert vectors into a namespace
Sourcepub fn get_all(&self, namespace: &NamespaceId) -> Vec<Vector>
pub fn get_all(&self, namespace: &NamespaceId) -> Vec<Vector>
Get all vectors in namespace
Sourcepub fn delete(&self, namespace: &NamespaceId, id: &VectorId) -> bool
pub fn delete(&self, namespace: &NamespaceId, id: &VectorId) -> bool
Delete a vector
Sourcepub fn delete_namespace(&self, namespace: &NamespaceId) -> bool
pub fn delete_namespace(&self, namespace: &NamespaceId) -> bool
Delete a namespace
Sourcepub fn compact_namespace(&self, namespace: &NamespaceId) -> usize
pub fn compact_namespace(&self, namespace: &NamespaceId) -> usize
Compact all vectors in a namespace
Sourcepub fn namespace_stats(&self, namespace: &NamespaceId) -> Option<DeltaStats>
pub fn namespace_stats(&self, namespace: &NamespaceId) -> Option<DeltaStats>
Get stats for a namespace
Sourcepub fn stats(&self) -> DeltaStats
pub fn stats(&self) -> DeltaStats
Get combined stats
Sourcepub fn list_namespaces(&self) -> Vec<NamespaceId> ⓘ
pub fn list_namespaces(&self) -> Vec<NamespaceId> ⓘ
List namespaces
Auto Trait Implementations§
impl !Freeze for DeltaStoreManager
impl !RefUnwindSafe for DeltaStoreManager
impl Send for DeltaStoreManager
impl Sync for DeltaStoreManager
impl Unpin for DeltaStoreManager
impl UnsafeUnpin for DeltaStoreManager
impl UnwindSafe for DeltaStoreManager
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