java.lang.Object
org.apache.jena.graph.impl.GraphBase
org.apache.jena.mem.GraphMemBase
- All Implemented Interfaces:
Graph,GraphWithPerform
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 method
openAgain(). 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 inherited from class org.apache.jena.graph.impl.GraphBase
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMITFields inherited from interface org.apache.jena.graph.Graph
emptyGraph -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this graph; if it is now fully closed, destroy its resources and run the GraphBase close.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
-
Constructor Details
-
GraphMemBase
public GraphMemBase()initialise a GraphMemBase with its count set to 1.
-
-
Method Details