java.lang.Object
org.apache.jena.tdb1.store.nodetable.NodeTableWrapper
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync,NodeTable
- Direct Known Subclasses:
NodeTableInline,NodeTableReadonly
-
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 nodegetAllocateNodeId(org.apache.jena.graph.Node node) Store the node in the node table (if not already present) and return the allocated Id.org.apache.jena.graph.NodeLook up node id and return the Node - return null if not foundgetNodeIdForNode(org.apache.jena.graph.Node node) Look up node and return the NodeId - return NodeId.NodeDoesNotExist if not foundbooleanisEmpty()Anything there?voidsync()final NodeTablewrapped()Return a NodeTable if this instance wraps another, else return null
-
Method Details
-
wrapped
Description copied from interface:NodeTableReturn a NodeTable if this instance wraps another, else return null -
getAllocateNodeId
Description copied from interface:NodeTableStore the node in the node table (if not already present) and return the allocated Id.- Specified by:
getAllocateNodeIdin interfaceNodeTable
-
getNodeIdForNode
Description copied from interface:NodeTableLook up node and return the NodeId - return NodeId.NodeDoesNotExist if not found- Specified by:
getNodeIdForNodein interfaceNodeTable
-
getNodeForNodeId
Description copied from interface:NodeTableLook up node id and return the Node - return null if not found- Specified by:
getNodeForNodeIdin 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
-
all
Description copied from interface:NodeTableIterate over all nodes (not necessarily fast). Does not include inlined NodeIds -
isEmpty
public boolean isEmpty()Description copied from interface:NodeTableAnything there? -
sync
public void sync()- Specified by:
syncin interfaceorg.apache.jena.atlas.lib.Sync
-
close
public void close()- Specified by:
closein interfaceorg.apache.jena.atlas.lib.Closeable
-