pub struct SqlitePageRankStore { /* private fields */ }Implementations§
Source§impl SqlitePageRankStore
impl SqlitePageRankStore
pub fn new(pool: SqlitePool) -> Self
Trait Implementations§
Source§impl Clone for SqlitePageRankStore
impl Clone for SqlitePageRankStore
Source§impl PageRankStore for SqlitePageRankStore
impl PageRankStore for SqlitePageRankStore
Source§fn rank_of<'life0, 'life1, 'async_trait>(
&'life0 self,
iri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<f64>, DomainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn rank_of<'life0, 'life1, 'async_trait>(
&'life0 self,
iri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<f64>, DomainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The stored PageRank score for one object IRI, or
None when the IRI
carries no score. The combine step reads a missing score as 1.0,
SBOLExplorer’s unknown-part convention.Source§fn ranks_for<'life0, 'life1, 'async_trait>(
&'life0 self,
iris: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, f64>, DomainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn ranks_for<'life0, 'life1, 'async_trait>(
&'life0 self,
iris: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, f64>, DomainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The stored scores for a set of IRIs, keyed by IRI. IRIs with no stored
score are absent from the map rather than defaulted, so the caller can
tell “unranked” from a real score.
Source§fn all_ranks<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<RankRow>, DomainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn all_ranks<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<RankRow>, DomainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Every stored
(iri, score) pair, feeding a full text-index rebuild.Source§fn replace_all_ranks<'life0, 'async_trait>(
&'life0 self,
ranks: Vec<RankRow>,
) -> Pin<Box<dyn Future<Output = Result<(), DomainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn replace_all_ranks<'life0, 'async_trait>(
&'life0 self,
ranks: Vec<RankRow>,
) -> Pin<Box<dyn Future<Output = Result<(), DomainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Replace the entire rank table with
ranks in one transaction: after it
returns the table reflects exactly this write and nothing prior.Auto Trait Implementations§
impl !RefUnwindSafe for SqlitePageRankStore
impl !UnwindSafe for SqlitePageRankStore
impl Freeze for SqlitePageRankStore
impl Send for SqlitePageRankStore
impl Sync for SqlitePageRankStore
impl Unpin for SqlitePageRankStore
impl UnsafeUnpin for SqlitePageRankStore
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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