Trait flechasdb::asyncdb::stored::LoadCodebook
source · pub trait LoadCodebook<T> {
// Required method
fn load_codebook<'life0, 'async_trait>(
&'life0 self,
index: usize
) -> Pin<Box<dyn Future<Output = Result<BlockVectorSet<T>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Capability of loading a single codebook.
Supposed to be specialized for a specific Database.
Required Methods§
sourcefn load_codebook<'life0, 'async_trait>(
&'life0 self,
index: usize
) -> Pin<Box<dyn Future<Output = Result<BlockVectorSet<T>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn load_codebook<'life0, 'async_trait>( &'life0 self, index: usize ) -> Pin<Box<dyn Future<Output = Result<BlockVectorSet<T>, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Loads a specified codebook of the database.
Fails if index is out of bounds.