Class GraphMemValue

java.lang.Object
org.apache.jena.graph.impl.GraphBase
org.apache.jena.memvalue.GraphMemValue
All Implemented Interfaces:
Graph, GraphWithPerform

@Deprecated public class GraphMemValue extends GraphBase
Deprecated.
Applications should be using GraphMemFactory.createDefaultGraph() for a general purpose graph or GraphMemFactory.createDefaultGraphSameValue() if necessary implementation.
In-memory, non-thread-safe, non-transactional graph. This specialised graph has same-value semantics for literals. It is used in the ModelAPI : see GraphMemFactory.createGraphMemForModel().
  • Constructor Details

    • GraphMemValue

      public GraphMemValue()
      Deprecated.
  • Method Details

    • performAdd

      public void performAdd(Triple t)
      Deprecated.
      Description copied from class: GraphBase
      Add a triple to the triple store. The default implementation throws an AddDeniedException; subclasses must override if they want to be able to add triples.
      Specified by:
      performAdd in interface GraphWithPerform
      Overrides:
      performAdd in class GraphBase
    • performDelete

      public void performDelete(Triple t)
      Deprecated.
      Description copied from class: GraphBase
      Remove a triple from the triple store. The default implementation throws a DeleteDeniedException; subclasses must override if they want to be able to remove triples.
      Specified by:
      performDelete in interface GraphWithPerform
      Overrides:
      performDelete in class GraphBase
    • graphBaseSize

      public int graphBaseSize()
      Deprecated.
    • graphBaseFind

      public ExtendedIterator<Triple> graphBaseFind(Triple m)
      Deprecated.
      Answer an ExtendedIterator over all the triples in this graph that match the triple-pattern m. Delegated to the store.
    • graphBaseContains

      public boolean graphBaseContains(Triple t)
      Deprecated.
      Answer true iff this graph contains t. If t happens to be concrete, then we hand responsibility over to the store. Otherwise we use the default implementation.
    • clear

      public void clear()
      Deprecated.
      Clear this GraphMem, ie remove all its triples (delegated to the store).
      Specified by:
      clear in interface Graph
      Overrides:
      clear in class GraphBase
    • stream

      public Stream<Triple> stream(Node s, Node p, Node o)
      Deprecated.
      Description copied from interface: Graph
      Returns a Stream of Triples matching a pattern.
      Returns:
      a stream of triples in this graph matching the pattern.
    • clearStore

      public void clearStore()
      Deprecated.
      Clear this GraphMem, ie remove all its triples (delegated to the store).