pub struct DynamicVectorManageService<T>{ /* private fields */ }
Implementations§
Source§impl<T> DynamicVectorManageService<T>
impl<T> DynamicVectorManageService<T>
pub fn new( structure_file_path: String, string_file_path: String, initial_size_if_not_exists: u64, ) -> Result<Self>
pub fn get_length(&self) -> u64
pub fn save_dynamic_bulk(&self, objs: Vec<T>) -> Vec<(u64, u64)>
pub fn load_dynamic_bulk( &self, start_offset_and_end_offset_list: Vec<(u64, u64)>, ) -> Vec<T>
pub fn save(&self, obj: T)
pub fn load(&self, index: u64) -> T
pub fn _save_bulk1(&self, objs: Vec<T>)
pub fn save_bulk(&self, objs: Vec<T>)
pub fn load_bulk(&self, index: u64, count: u64) -> Vec<T>
Trait Implementations§
Source§impl<T> VectorEngine<T> for DynamicVectorManageService<T>
impl<T> VectorEngine<T> for DynamicVectorManageService<T>
fn new( structural_repository: String, dynamic_repository: String, initial_file_size: u64, ) -> Self
fn push(&self, obj: T)
fn pushx(&self, objs: Vec<T>)
fn pull(&self, index: u64) -> T
fn pullx(&self, index: u64, count: u64) -> Vec<T>
fn len(&self) -> usize
fn is_empty(&self) -> bool
fn get(&self, index: u64) -> Option<T>
fn getx(&self, index: u64, count: u64) -> Option<Vec<T>>
fn getall(&self) -> Option<Vec<T>>
Auto Trait Implementations§
impl<T> !Freeze for DynamicVectorManageService<T>
impl<T> RefUnwindSafe for DynamicVectorManageService<T>where
T: RefUnwindSafe,
impl<T> Send for DynamicVectorManageService<T>
impl<T> Sync for DynamicVectorManageService<T>where
T: Sync,
impl<T> Unpin for DynamicVectorManageService<T>where
T: Unpin,
impl<T> UnwindSafe for DynamicVectorManageService<T>where
T: UnwindSafe,
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> 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