Package org.apache.jena.mem
Class GraphMem
- java.lang.Object
-
- org.apache.jena.graph.impl.GraphBase
-
- org.apache.jena.mem.GraphMemBase
-
- org.apache.jena.mem.GraphMem
-
- All Implemented Interfaces:
Graph
,GraphWithPerform
public class GraphMem extends GraphMemBase
-
-
Field Summary
-
Fields inherited from class org.apache.jena.mem.GraphMemBase
store
-
Fields inherited from class org.apache.jena.graph.impl.GraphBase
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT
-
Fields inherited from interface org.apache.jena.graph.Graph
emptyGraph
-
-
Constructor Summary
Constructors Constructor Description GraphMem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clear this GraphMem, ie remove all its triples (delegated to the store).void
clearStore()
Clear this GraphMem, ie remove all its triples (delegated to the store).boolean
graphBaseContains(Triple t)
Answer true iff this graph containst
.ExtendedIterator<Triple>
graphBaseFind(Triple m)
Answer an ExtendedIterator over all the triples in this graph that match the triple-patternm
.int
graphBaseSize()
void
performAdd(Triple t)
Add a triple to the triple store.void
performDelete(Triple t)
Remove a triple from the triple store.-
Methods inherited from class org.apache.jena.mem.GraphMemBase
close, openAgain
-
Methods inherited from class org.apache.jena.graph.impl.GraphBase
add, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getCapabilities, getEventManager, getPrefixMapping, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, remove, size, toString, toString
-
-
-
-
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 interfaceGraphWithPerform
- Overrides:
performAdd
in classGraphBase
-
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 interfaceGraphWithPerform
- Overrides:
performDelete
in classGraphBase
-
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-patternm
. Delegated to the store.
-
graphBaseContains
public boolean graphBaseContains(Triple t)
Answer true iff this graph containst
. Ift
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).
-
clearStore
public void clearStore()
Clear this GraphMem, ie remove all its triples (delegated to the store).
-
-