[][src]Struct lsh_rs::SqlTable

pub struct SqlTable<N, K> where
    N: Numeric,
    K: Integer
{ pub conn: Connection, pub committed: Cell<bool>, // some fields omitted }

Sqlite backend for LSH.

State will be save during sessions. The database is automatically loaded if LSH can find the database file (defaults to ./lsh.db3.

Fields

conn: Connectioncommitted: Cell<bool>

Implementations

impl<N, K> SqlTable<N, K> where
    N: Numeric,
    K: Integer
[src]

pub fn init_from_conn(
    n_hash_tables: usize,
    only_index_storage: bool,
    conn: Connection
) -> Result<Self>
[src]

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> HashTables<N, K> for SqlTable<N, K> where
    N: Numeric,
    K: Integer
[src]

fn query_bucket(&self, hash: &[K], hash_table: usize) -> Result<HashSet<u32>>[src]

Query the whole bucket

Auto Trait Implementations

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> where
    K: Unpin,
    N: Unpin

impl<N, K> UnwindSafe for SqlTable<N, K> where
    K: UnwindSafe,
    N: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,