pub struct TripleStore { /* private fields */ }Expand description
Triple store with pluggable strategy
Implementations§
Source§impl TripleStore
impl TripleStore
Sourcepub fn new(strategy: Arc<dyn StoreStrategy>) -> TripleStore
pub fn new(strategy: Arc<dyn StoreStrategy>) -> TripleStore
Create with strategy
Sourcepub fn eager() -> TripleStore
pub fn eager() -> TripleStore
Create with eager strategy
Sourcepub fn lazy() -> TripleStore
pub fn lazy() -> TripleStore
Create with lazy strategy
Sourcepub fn minimal() -> TripleStore
pub fn minimal() -> TripleStore
Create with minimal strategy
Sourcepub fn query(
&self,
subject: Option<&str>,
predicate: Option<&str>,
object: Option<&str>,
) -> Vec<(String, String, String)>
pub fn query( &self, subject: Option<&str>, predicate: Option<&str>, object: Option<&str>, ) -> Vec<(String, String, String)>
Query with pattern
Sourcepub fn strategy_name(&self) -> &str
pub fn strategy_name(&self) -> &str
Get strategy name
Sourcepub fn index_stats(&self) -> HashMap<IndexType, IndexStats>
pub fn index_stats(&self) -> HashMap<IndexType, IndexStats>
Get index statistics
Auto Trait Implementations§
impl !Freeze for TripleStore
impl !RefUnwindSafe for TripleStore
impl Send for TripleStore
impl Sync for TripleStore
impl Unpin for TripleStore
impl UnsafeUnpin for TripleStore
impl !UnwindSafe for TripleStore
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> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request