java.lang.Object
org.apache.jena.tdb1.store.nodetable.NodeTableNative
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync,NodeTable
A concrete NodeTable based on native storage (string file and an index)
-
Constructor Summary
Constructors -
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) Find the NodeId for a node, allocating a new NodeId if the Node does not yet have a NodeIdgetIndex()org.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()wrapped()Return a NodeTable if this instance wraps another, else return null
-
Constructor Details
-
NodeTableNative
-
-
Method Details
-
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
-
close
public void close()- Specified by:
closein interfaceorg.apache.jena.atlas.lib.Closeable
-
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 -
sync
public void sync()- Specified by:
syncin interfaceorg.apache.jena.atlas.lib.Sync
-
getObjects
-
getIndex
-
toString
-
isEmpty
public boolean isEmpty()Description copied from interface:NodeTableAnything there? -
wrapped
Description copied from interface:NodeTableReturn a NodeTable if this instance wraps another, else return null
-