Package org.apache.jena.mem
Class GraphMemBase
- java.lang.Object
-
- org.apache.jena.graph.impl.GraphBase
-
- org.apache.jena.mem.GraphMemBase
-
- All Implemented Interfaces:
Graph
,GraphWithPerform
- Direct Known Subclasses:
GraphMem
public abstract class GraphMemBase extends GraphBase
GraphMemBase - a common base class for GraphMem and SmallGraphMem. Any GraphMemBase maintains a reference count, set to one when it is created, and incremented by the methodopenAgain()
. When the graph is closed, the count is decrememented, and when it reaches 0, the tables are trashed and GraphBase.close() called. Thus in normal use one close is enough, but GraphMakers using GraphMems can arrange to re-use the same named graph.
-
-
Field Summary
Fields Modifier and Type Field Description TripleStore
store
This Graph's TripleStore.-
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 GraphMemBase()
initialise a GraphMemBase with its count set to 1.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close this graph; if it is now fully closed, destroy its resources and run the GraphBase close.GraphMemBase
openAgain()
Note a re-opening of this graph by incrementing the count.-
Methods inherited from class org.apache.jena.graph.impl.GraphBase
add, clear, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getCapabilities, getEventManager, getPrefixMapping, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, performAdd, performDelete, remove, size, toString, toString
-
-
-
-
Field Detail
-
store
public final TripleStore store
This Graph's TripleStore. Visible for read-only purposes only.
-
-
Method Detail
-
openAgain
public GraphMemBase openAgain()
Note a re-opening of this graph by incrementing the count. Answer this Graph.
-
-