Class GraphMem

    • Constructor Detail

      • GraphMem

        public GraphMem()
    • Method Detail

      • performAdd

        public void performAdd​(Triple t)
        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)
        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()
      • graphBaseFind

        public ExtendedIterator<Triple> graphBaseFind​(Triple m)
        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)
        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()
        Clear this GraphMem, ie remove all its triples (delegated to the store).
        Specified by:
        clear in interface Graph
        Overrides:
        clear in class GraphBase
      • clearStore

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