Struct rdftk_memgraph::data_set::MemDataSet [−][src]
pub struct MemDataSet { /* fields omitted */ }
Expand description
This implementation of the core DataSet
and MutableDataSet
traits is a simple in-memory hash
from graph name to a MemGraph
implementation.
Trait Implementations
impl<'a> DataSet<'a, MemGraph> for MemDataSet
[src]
impl<'a> DataSet<'a, MemGraph> for MemDataSet
[src]type GraphIter = Iter<'a, GraphNameRef, MemGraph>
type GraphIter = Iter<'a, GraphNameRef, MemGraph>
The type used to return an iterator over the graph name/graph pairs in this data set. Read more
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
[src]Returns true
if there are no graphs in this data set, else false
. Read more
fn has_default_graph(&self) -> bool
[src]
fn has_default_graph(&self) -> bool
[src]Return true
if this data set has a default graph, else false
. Read more
fn default_graph(&self) -> &Option<MemGraph>
[src]
fn default_graph(&self) -> &Option<MemGraph>
[src]Return the default graph for this data set, if it exists. Read more
fn has_graph_named(&self, name: &GraphNameRef) -> bool
[src]
fn has_graph_named(&self, name: &GraphNameRef) -> bool
[src]Return true
if this data set has a graph with the provided name, else false
. Read more
fn graph_named(&self, name: &GraphNameRef) -> Option<&MemGraph>
[src]
fn graph_named(&self, name: &GraphNameRef) -> Option<&MemGraph>
[src]Return the graph with the provided name from this data set, if it exists. Read more
fn graphs(&'a self) -> Self::GraphIter
[src]
fn graphs(&'a self) -> Self::GraphIter
[src]Return an iterator over graph name/graph pairs. Read more
fn has_index(&self, _: &DataSetIndex) -> bool
[src]
fn has_index(&self, _: &DataSetIndex) -> bool
[src]Returns true
if this data set has an index of the specified kind, else false
. Read more
fn has_indices(&self, indices: &[DataSetIndex]) -> bool
[src]
fn has_indices(&self, indices: &[DataSetIndex]) -> bool
[src]Returns true
if this data set has *all the specified index kinds, else false
. Read more
impl Debug for MemDataSet
[src]
impl Debug for MemDataSet
[src]impl Default for MemDataSet
[src]
impl Default for MemDataSet
[src]impl From<HashMap<Rc<GraphName>, MemGraph, RandomState>> for MemDataSet
[src]
impl From<HashMap<Rc<GraphName>, MemGraph, RandomState>> for MemDataSet
[src]fn from(graphs: HashMap<GraphNameRef, MemGraph>) -> Self
[src]
fn from(graphs: HashMap<GraphNameRef, MemGraph>) -> Self
[src]Performs the conversion.
impl<'a> MutableDataSet<'a, MemGraph> for MemDataSet
[src]
impl<'a> MutableDataSet<'a, MemGraph> for MemDataSet
[src]fn set_default_graph(&mut self, graph: MemGraph)
[src]
fn set_default_graph(&mut self, graph: MemGraph)
[src]Set the provided graph as the default, unnamed graph, for this data set. Only one graph may be the default. Read more
fn unset_default_graph(&mut self)
[src]
fn unset_default_graph(&mut self)
[src]Remove any graph that may be set as the current default. This operation has no effect if no default graph is present. Read more
fn insert(&mut self, name: GraphNameRef, graph: MemGraph)
[src]
fn insert(&mut self, name: GraphNameRef, graph: MemGraph)
[src]Insert a new graph with it’s associated name into the data set. Read more
fn remove(&mut self, name: &GraphNameRef)
[src]
fn remove(&mut self, name: &GraphNameRef)
[src]Remove the graph with the provided name from this data set. This operation has no effect if no such graph is present. Read more