pub struct CollectionManager { /* private fields */ }Expand description
Manages multiple vector collections with alias support
Implementations§
Source§impl CollectionManager
impl CollectionManager
Sourcepub fn create_collection(
&self,
name: &str,
config: CollectionConfig,
) -> Result<()>
pub fn create_collection( &self, name: &str, config: CollectionConfig, ) -> Result<()>
Sourcepub fn delete_collection(&self, name: &str) -> Result<()>
pub fn delete_collection(&self, name: &str) -> Result<()>
Sourcepub fn get_collection(&self, name: &str) -> Option<Arc<RwLock<Collection>>>
pub fn get_collection(&self, name: &str) -> Option<Arc<RwLock<Collection>>>
Sourcepub fn list_collections(&self) -> Vec<String>
pub fn list_collections(&self) -> Vec<String>
List all collection names
Sourcepub fn collection_exists(&self, name: &str) -> bool
pub fn collection_exists(&self, name: &str) -> bool
Sourcepub fn collection_stats(&self, name: &str) -> Result<CollectionStats>
pub fn collection_stats(&self, name: &str) -> Result<CollectionStats>
Get statistics for a collection
Sourcepub fn delete_alias(&self, alias: &str) -> Result<()>
pub fn delete_alias(&self, alias: &str) -> Result<()>
Sourcepub fn resolve_alias(&self, name_or_alias: &str) -> Option<String>
pub fn resolve_alias(&self, name_or_alias: &str) -> Option<String>
Sourcepub fn list_aliases(&self) -> Vec<(String, String)>
pub fn list_aliases(&self) -> Vec<(String, String)>
List all aliases with their target collections
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CollectionManager
impl !RefUnwindSafe for CollectionManager
impl Send for CollectionManager
impl Sync for CollectionManager
impl Unpin for CollectionManager
impl !UnwindSafe for CollectionManager
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