java.lang.Object
org.apache.jena.tdb1.store.nodetable.NodeTableCache
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync,NodeTable
Cache wrapper around a NodeTable.
Assumes all access goes through this wrapper.
Read-cache - write caching is done via the object file used by the base NodeTable.
-
Method Summary
Modifier and TypeMethodDescriptionall()Iterate over all nodes (not necessarily fast).The offset needed to predicate allocation difference between persistent tables - internal functionvoidclose()booleancontainsNode(org.apache.jena.graph.Node node) Test whether the node table contains an entry for nodebooleancontainsNodeId(NodeId nodeId) Test whether the node table contains an entry for nodestatic NodeTablestatic NodeTablecreate(NodeTable nodeTable, StoreParams params) getAllocateNodeId(org.apache.jena.graph.Node node) Find the NodeId for a node, allocating a new NodeId if the Node does not yet have a NodeIdorg.apache.jena.graph.NodeGet the Node for this NodeId, or null if nonegetNodeIdForNode(org.apache.jena.graph.Node node) Find the NodeId for a node, or return NodeId.NodeDoesNotExistbooleanisEmpty()Anything there?voidsync()toString()final NodeTablewrapped()Return a NodeTable if this instance wraps another, else return null
-
Method Details
-
create
-
create
-
wrapped
Description copied from interface:NodeTableReturn a NodeTable if this instance wraps another, else return null -
getNodeForNodeId
Get the Node for this NodeId, or null if none- Specified by:
getNodeForNodeIdin interfaceNodeTable
-
getNodeIdForNode
Find the NodeId for a node, or return NodeId.NodeDoesNotExist- Specified by:
getNodeIdForNodein interfaceNodeTable
-
getAllocateNodeId
Find the NodeId for a node, allocating a new NodeId if the Node does not yet have a NodeId- Specified by:
getAllocateNodeIdin interfaceNodeTable
-
containsNode
public boolean containsNode(org.apache.jena.graph.Node node) Description copied from interface:NodeTableTest whether the node table contains an entry for node- Specified by:
containsNodein interfaceNodeTable
-
containsNodeId
Description copied from interface:NodeTableTest whether the node table contains an entry for node- Specified by:
containsNodeIdin interfaceNodeTable
-
allocOffset
Description copied from interface:NodeTableThe offset needed to predicate allocation difference between persistent tables - internal function- Specified by:
allocOffsetin interfaceNodeTable
-
isEmpty
public boolean isEmpty()Description copied from interface:NodeTableAnything there? -
close
public void close()- Specified by:
closein interfaceorg.apache.jena.atlas.lib.Closeable
-
sync
public void sync()- Specified by:
syncin interfaceorg.apache.jena.atlas.lib.Sync
-
all
Description copied from interface:NodeTableIterate over all nodes (not necessarily fast). Does not include inlined NodeIds -
toString
-