[−][src]Struct lsh_rs::MemoryTable
In memory backend for LSH.
Fields
vec_store: VecStore
Trait Implementations
impl Debug for MemoryTable
[src]
impl<'de> Deserialize<'de> for MemoryTable
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl HashTables for MemoryTable
[src]
fn new(
n_hash_tables: usize,
only_index_storage: bool,
_: &str
) -> Result<Box<Self>>
[src]
n_hash_tables: usize,
only_index_storage: bool,
_: &str
) -> Result<Box<Self>>
fn put(
&mut self,
hash: Hash,
d: &DataPointSlice,
hash_table: usize
) -> Result<u32>
[src]
&mut self,
hash: Hash,
d: &DataPointSlice,
hash_table: usize
) -> Result<u32>
fn delete(
&mut self,
hash: &Hash,
d: &DataPointSlice,
hash_table: usize
) -> Result<()>
[src]
&mut self,
hash: &Hash,
d: &DataPointSlice,
hash_table: usize
) -> Result<()>
Expensive operation we need to do a linear search over all datapoints
fn update_by_idx(
&mut self,
old_hash: &Hash,
new_hash: Hash,
idx: u32,
hash_table: usize
) -> Result<()>
[src]
&mut self,
old_hash: &Hash,
new_hash: Hash,
idx: u32,
hash_table: usize
) -> Result<()>
fn query_bucket(&self, hash: &Hash, hash_table: usize) -> Result<HashSet<u32>>
[src]
Query the whole bucket
fn idx_to_datapoint(&self, idx: u32) -> Result<&DataPoint>
[src]
fn increase_storage(&mut self, size: usize)
[src]
fn describe(&self) -> Result<String>
[src]
fn get_unique_hash_int(&self) -> FnvHashSet<HashPrimitive>
[src]
fn store_hashers<H: VecHash + Serialize>(
&mut self,
_hashers: &[H]
) -> Result<()>
[src]
&mut self,
_hashers: &[H]
) -> Result<()>
fn load_hashers<H: VecHash + DeserializeOwned>(&self) -> Result<Vec<H>>
[src]
impl Serialize for MemoryTable
[src]
Auto Trait Implementations
impl RefUnwindSafe for MemoryTable
impl Send for MemoryTable
impl Sync for MemoryTable
impl Unpin for MemoryTable
impl UnwindSafe for MemoryTable
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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>,