pub struct IndexManager { /* private fields */ }Implementations§
Source§impl IndexManager
impl IndexManager
pub fn new() -> Self
pub fn create_index(&mut self, config: IndexConfig) -> Result<(), String>
pub fn update_record( &mut self, record_id: &str, old_value: Option<&str>, new_value: &str, ) -> Result<(), String>
pub fn query_index( &mut self, index_name: &str, operator: &str, value: &str, ) -> Result<Vec<String>, String>
pub fn list_indexes(&self) -> Vec<IndexConfig>
pub fn get_stats(&self, name: &str) -> Option<IndexStats>
Source§impl IndexManager
impl IndexManager
pub fn query_with_pagination( &mut self, index_name: &str, operator: &str, value: &str, params: PaginationParams, ) -> Result<QueryResult, String>
pub fn plan_query( &self, index_name: &str, operator: &str, ) -> Result<QueryPlan, String>
pub fn count_indexed( &mut self, index_name: &str, operator: &str, value: &str, ) -> Result<usize, String>
pub fn exists_indexed( &mut self, index_name: &str, operator: &str, value: &str, ) -> Result<bool, String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexManager
impl RefUnwindSafe for IndexManager
impl Send for IndexManager
impl Sync for IndexManager
impl Unpin for IndexManager
impl UnsafeUnpin for IndexManager
impl UnwindSafe for IndexManager
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