pub struct MemQuadStorage { /* private fields */ }
Expand description
A memory-based quad storage.
Implementations§
Source§impl MemQuadStorage
impl MemQuadStorage
Sourcepub fn new(
object_id_mapping: Arc<MemObjectIdMapping>,
batch_size: usize,
) -> MemQuadStorage
pub fn new( object_id_mapping: Arc<MemObjectIdMapping>, batch_size: usize, ) -> MemQuadStorage
Creates a new MemQuadStorage with the given object_id_mapping
.
Trait Implementations§
Source§impl QuadStorage for MemQuadStorage
impl QuadStorage for MemQuadStorage
Source§fn encoding(&self) -> QuadStorageEncoding
fn encoding(&self) -> QuadStorageEncoding
Returns the quad storage encoding.
Source§fn object_id_mapping(&self) -> Option<Arc<dyn ObjectIdMapping>>
fn object_id_mapping(&self) -> Option<Arc<dyn ObjectIdMapping>>
Returns a reference to the used ObjectIdMapping.
Source§fn planners<'life0, 'life1, 'async_trait>(
&'life0 self,
_context: &'life1 RdfFusionContextView,
) -> Pin<Box<dyn Future<Output = Vec<Arc<dyn ExtensionPlanner + Send + Sync>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
MemQuadStorage: 'async_trait,
fn planners<'life0, 'life1, 'async_trait>(
&'life0 self,
_context: &'life1 RdfFusionContextView,
) -> Pin<Box<dyn Future<Output = Vec<Arc<dyn ExtensionPlanner + Send + Sync>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
MemQuadStorage: 'async_trait,
Returns a list of planners that support planning logical nodes requiring access to the
storage layer. Read more
Source§fn extend<'life0, 'async_trait>(
&'life0 self,
quads: Vec<Quad>,
) -> Pin<Box<dyn Future<Output = Result<usize, StorageError>> + Send + 'async_trait>>where
'life0: 'async_trait,
MemQuadStorage: 'async_trait,
fn extend<'life0, 'async_trait>(
&'life0 self,
quads: Vec<Quad>,
) -> Pin<Box<dyn Future<Output = Result<usize, StorageError>> + Send + 'async_trait>>where
'life0: 'async_trait,
MemQuadStorage: 'async_trait,
Loads the given quads into the storage.
Source§fn remove<'life0, 'life1, 'async_trait>(
&'life0 self,
quad: QuadRef<'life1>,
) -> Pin<Box<dyn Future<Output = Result<bool, StorageError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
MemQuadStorage: 'async_trait,
fn remove<'life0, 'life1, 'async_trait>(
&'life0 self,
quad: QuadRef<'life1>,
) -> Pin<Box<dyn Future<Output = Result<bool, StorageError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
MemQuadStorage: 'async_trait,
Removes the given quad from the storage.
Source§fn insert_named_graph<'a, 'life0, 'async_trait>(
&'life0 self,
graph_name: NamedOrBlankNodeRef<'a>,
) -> Pin<Box<dyn Future<Output = Result<bool, StorageError>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
MemQuadStorage: 'async_trait,
fn insert_named_graph<'a, 'life0, 'async_trait>(
&'life0 self,
graph_name: NamedOrBlankNodeRef<'a>,
) -> Pin<Box<dyn Future<Output = Result<bool, StorageError>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
MemQuadStorage: 'async_trait,
Creates an empty named graph in the storage.
Source§fn named_graphs<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<NamedOrBlankNode>, StorageError>> + Send + 'async_trait>>where
'life0: 'async_trait,
MemQuadStorage: 'async_trait,
fn named_graphs<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<NamedOrBlankNode>, StorageError>> + Send + 'async_trait>>where
'life0: 'async_trait,
MemQuadStorage: 'async_trait,
Returns the list of named graphs in the storage.
Source§fn contains_named_graph<'a, 'life0, 'async_trait>(
&'life0 self,
graph_name: NamedOrBlankNodeRef<'a>,
) -> Pin<Box<dyn Future<Output = Result<bool, StorageError>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
MemQuadStorage: 'async_trait,
fn contains_named_graph<'a, 'life0, 'async_trait>(
&'life0 self,
graph_name: NamedOrBlankNodeRef<'a>,
) -> Pin<Box<dyn Future<Output = Result<bool, StorageError>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
MemQuadStorage: 'async_trait,
Returns whether
graph_name
is a named graph in the storage.Source§fn clear<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>where
'life0: 'async_trait,
MemQuadStorage: 'async_trait,
fn clear<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>where
'life0: 'async_trait,
MemQuadStorage: 'async_trait,
Clears the entire storage.
Source§fn clear_graph<'a, 'life0, 'async_trait>(
&'life0 self,
graph_name: GraphNameRef<'a>,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
MemQuadStorage: 'async_trait,
fn clear_graph<'a, 'life0, 'async_trait>(
&'life0 self,
graph_name: GraphNameRef<'a>,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
MemQuadStorage: 'async_trait,
Clears the entire graph.
Source§fn drop_named_graph<'life0, 'life1, 'async_trait>(
&'life0 self,
graph_name: NamedOrBlankNodeRef<'life1>,
) -> Pin<Box<dyn Future<Output = Result<bool, StorageError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
MemQuadStorage: 'async_trait,
fn drop_named_graph<'life0, 'life1, 'async_trait>(
&'life0 self,
graph_name: NamedOrBlankNodeRef<'life1>,
) -> Pin<Box<dyn Future<Output = Result<bool, StorageError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
MemQuadStorage: 'async_trait,
Removes the entire named graph from the storage.
Source§fn len<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<usize, StorageError>> + Send + 'async_trait>>where
'life0: 'async_trait,
MemQuadStorage: 'async_trait,
fn len<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<usize, StorageError>> + Send + 'async_trait>>where
'life0: 'async_trait,
MemQuadStorage: 'async_trait,
Returns the number of quads in the storage.
Auto Trait Implementations§
impl Freeze for MemQuadStorage
impl !RefUnwindSafe for MemQuadStorage
impl Send for MemQuadStorage
impl Sync for MemQuadStorage
impl Unpin for MemQuadStorage
impl !UnwindSafe for MemQuadStorage
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> 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