[−][src]Struct lsh_rs::SqlTableMem
In memory Sqlite backend for LSH.
Implementations
impl<N, K> SqlTableMem<N, K> where
N: Numeric,
K: Integer,
[src]
N: Numeric,
K: Integer,
Methods from Deref<Target = SqlTable<N, K>>
pub fn commit(&self) -> Result<()>
[src]
pub fn init_transaction(&self) -> Result<()>
[src]
pub fn to_mem(&mut self) -> Result<()>
[src]
pub fn index_hash(&self) -> Result<()>
[src]
Trait Implementations
impl<N, K> Deref for SqlTableMem<N, K> where
N: Numeric,
K: Integer,
[src]
N: Numeric,
K: Integer,
type Target = SqlTable<N, K>
The resulting type after dereferencing.
fn deref(&self) -> &SqlTable<N, K>
[src]
impl<N, K> DerefMut for SqlTableMem<N, K> where
N: Numeric,
K: Integer,
[src]
N: Numeric,
K: Integer,
impl<N, K> HashTables<N, K> for SqlTableMem<N, K> where
N: Numeric,
K: Integer,
[src]
N: Numeric,
K: Integer,
fn new(
n_hash_tables: usize,
only_index_storage: bool,
_db_path: &str
) -> Result<Box<Self>>
[src]
n_hash_tables: usize,
only_index_storage: bool,
_db_path: &str
) -> Result<Box<Self>>
fn put(&mut self, hash: Vec<K>, d: &[N], hash_table: usize) -> Result<u32>
[src]
Arguments
hash
- hashed vector.d
- Vector to store in the buckets.hash_table
- Number of the hash_table to store the vector. Ranging from 0 to L.
fn delete(&mut self, hash: &[K], d: &[N], hash_table: usize) -> Result<()>
[src]
fn query_bucket(&self, hash: &[K], hash_table: usize) -> Result<HashSet<u32>>
[src]
Query the whole bucket
fn idx_to_datapoint(&self, idx: u32) -> Result<&Vec<N>>
[src]
fn describe(&self) -> Result<String>
[src]
fn get_unique_hash_int(&self) -> FnvHashSet<i32>
[src]
fn update_by_idx(
&mut self,
_old_hash: &[K],
_new_hash: Vec<K>,
_idx: u32,
_hash_table: usize
) -> Result<()>
[src]
&mut self,
_old_hash: &[K],
_new_hash: Vec<K>,
_idx: u32,
_hash_table: usize
) -> Result<()>
fn increase_storage(&mut self, _size: usize)
[src]
fn store_hashers<H: VecHash<N, K> + Serialize>(
&mut self,
_hashers: &[H]
) -> Result<()>
[src]
&mut self,
_hashers: &[H]
) -> Result<()>
fn load_hashers<H: VecHash<N, K> + DeserializeOwned>(&self) -> Result<Vec<H>>
[src]
Auto Trait Implementations
impl<N, K> !RefUnwindSafe for SqlTableMem<N, K>
impl<N, K> Send for SqlTableMem<N, K>
impl<N, K> !Sync for SqlTableMem<N, K>
impl<N, K> Unpin for SqlTableMem<N, K> where
K: Unpin,
N: Unpin,
K: Unpin,
N: Unpin,
impl<N, K> UnwindSafe for SqlTableMem<N, K> where
K: UnwindSafe,
N: UnwindSafe,
K: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,