- All Superinterfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync
- All Known Implementing Classes:
NodeTableCache,NodeTableInline,NodeTableLogger,NodeTableNative,NodeTableReadonly,NodeTableWrapper
public interface NodeTable
extends org.apache.jena.atlas.lib.Sync, org.apache.jena.atlas.lib.Closeable
Node table - conceptually a two way mapping of Node <-> NodeId
where Nodes can be stored and NodeIds allocated.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionall()Iterate over all nodes (not necessarily fast).The offset needed to predicate allocation difference between persistent tables - internal functionbooleancontainsNode(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?wrapped()Return a NodeTable if this instance wraps another, else return nullMethods inherited from interface org.apache.jena.atlas.lib.Closeable
closeMethods inherited from interface org.apache.jena.atlas.lib.Sync
sync
-
Method Details
-
getAllocateNodeId
Store the node in the node table (if not already present) and return the allocated Id. -
getNodeIdForNode
Look up node and return the NodeId - return NodeId.NodeDoesNotExist if not found -
getNodeForNodeId
Look up node id and return the Node - return null if not found -
containsNode
boolean containsNode(org.apache.jena.graph.Node node) Test whether the node table contains an entry for node -
containsNodeId
Test whether the node table contains an entry for node -
all
Iterate over all nodes (not necessarily fast). Does not include inlined NodeIds -
allocOffset
NodeId allocOffset()The offset needed to predicate allocation difference between persistent tables - internal function -
isEmpty
boolean isEmpty()Anything there? -
wrapped
NodeTable wrapped()Return a NodeTable if this instance wraps another, else return null
-