Class NodeTableLogger

java.lang.Object
org.apache.jena.tdb1.store.nodetable.NodeTableLogger
All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync, NodeTable

public class NodeTableLogger extends Object implements NodeTable
  • Constructor Summary

    Constructors
    Constructor
    Description
    NodeTableLogger(String label, NodeTable nodeTable)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Iterator<org.apache.jena.atlas.lib.Pair<NodeId,org.apache.jena.graph.Node>>
    all()
    Iterate over all nodes (not necessarily fast).
    The offset needed to predicate allocation difference between persistent tables - internal function
    void
     
    boolean
    containsNode(org.apache.jena.graph.Node node)
    Test whether the node table contains an entry for node
    boolean
    Test whether the node table contains an entry for node
    getAllocateNodeId(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.Node
    Look up node id and return the Node - return null if not found
    getNodeIdForNode(org.apache.jena.graph.Node node)
    Look up node and return the NodeId - return NodeId.NodeDoesNotExist if not found
    boolean
    Anything there?
    void
     
    Return a NodeTable if this instance wraps another, else return null

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NodeTableLogger

      public NodeTableLogger(String label, NodeTable nodeTable)
  • Method Details

    • getAllocateNodeId

      public NodeId getAllocateNodeId(org.apache.jena.graph.Node node)
      Description copied from interface: NodeTable
      Store the node in the node table (if not already present) and return the allocated Id.
      Specified by:
      getAllocateNodeId in interface NodeTable
    • getNodeIdForNode

      public NodeId getNodeIdForNode(org.apache.jena.graph.Node node)
      Description copied from interface: NodeTable
      Look up node and return the NodeId - return NodeId.NodeDoesNotExist if not found
      Specified by:
      getNodeIdForNode in interface NodeTable
    • getNodeForNodeId

      public org.apache.jena.graph.Node getNodeForNodeId(NodeId id)
      Description copied from interface: NodeTable
      Look up node id and return the Node - return null if not found
      Specified by:
      getNodeForNodeId in interface NodeTable
    • containsNode

      public boolean containsNode(org.apache.jena.graph.Node node)
      Description copied from interface: NodeTable
      Test whether the node table contains an entry for node
      Specified by:
      containsNode in interface NodeTable
    • containsNodeId

      public boolean containsNodeId(NodeId id)
      Description copied from interface: NodeTable
      Test whether the node table contains an entry for node
      Specified by:
      containsNodeId in interface NodeTable
    • allocOffset

      public NodeId allocOffset()
      Description copied from interface: NodeTable
      The offset needed to predicate allocation difference between persistent tables - internal function
      Specified by:
      allocOffset in interface NodeTable
    • all

      public Iterator<org.apache.jena.atlas.lib.Pair<NodeId,org.apache.jena.graph.Node>> all()
      Description copied from interface: NodeTable
      Iterate over all nodes (not necessarily fast). Does not include inlined NodeIds
      Specified by:
      all in interface NodeTable
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: NodeTable
      Anything there?
      Specified by:
      isEmpty in interface NodeTable
    • sync

      public void sync()
      Specified by:
      sync in interface org.apache.jena.atlas.lib.Sync
    • close

      public void close()
      Specified by:
      close in interface org.apache.jena.atlas.lib.Closeable
    • wrapped

      public NodeTable wrapped()
      Description copied from interface: NodeTable
      Return a NodeTable if this instance wraps another, else return null
      Specified by:
      wrapped in interface NodeTable