pub struct SqlTable<N, K>{
pub conn: Connection,
pub committed: Cell<bool>,
/* private fields */
}Expand description
Fields§
§conn: Connection§committed: Cell<bool>Implementations§
Trait Implementations§
Source§impl<N, K> HashTables<N, K> for SqlTable<N, K>
impl<N, K> HashTables<N, K> for SqlTable<N, K>
Source§fn query_bucket(&self, hash: &[K], hash_table: usize) -> Result<FnvHashSet<u32>>
fn query_bucket(&self, hash: &[K], hash_table: usize) -> Result<FnvHashSet<u32>>
Query the whole bucket
fn new( n_hash_tables: usize, only_index_storage: bool, db_path: &str, ) -> Result<Box<Self>>
Source§fn put(&mut self, hash: Vec<K>, _d: &[N], hash_table: usize) -> Result<u32>
fn put(&mut self, hash: Vec<K>, _d: &[N], hash_table: usize) -> Result<u32>
Arguments Read more
fn describe(&self) -> Result<String>
fn store_hashers<H: VecHash<N, K> + Serialize>( &mut self, hashers: &[H], ) -> Result<()>
fn load_hashers<H: VecHash<N, K> + DeserializeOwned>(&self) -> Result<Vec<H>>
fn get_unique_hash_int(&self) -> FnvHashSet<i32>
fn delete(&mut self, _hash: &[K], _d: &[N], _hash_table: usize) -> Result<()>
fn update_by_idx( &mut self, _old_hash: &[K], _new_hash: Vec<K>, _idx: u32, _hash_table: usize, ) -> Result<()>
fn idx_to_datapoint(&self, _idx: u32) -> Result<&Vec<N>>
fn increase_storage(&mut self, _size: usize)
Auto Trait Implementations§
impl<N, K> !Freeze for SqlTable<N, K>
impl<N, K> !RefUnwindSafe for SqlTable<N, K>
impl<N, K> Send for SqlTable<N, K>
impl<N, K> !Sync for SqlTable<N, K>
impl<N, K> Unpin for SqlTable<N, K>
impl<N, K> !UnwindSafe for SqlTable<N, K>
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