Class NodeTupleTableConcrete

java.lang.Object
org.apache.jena.tdb1.store.nodetupletable.NodeTupleTableConcrete
All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync, NodeTupleTable

public class NodeTupleTableConcrete extends Object implements NodeTupleTable
Group a tuple table and node table together to provide a real NodeTupleTable
  • Constructor Details

  • Method Details

    • getPolicy

      public DatasetControl getPolicy()
      Description copied from interface: NodeTupleTable
      Return the current policy, if any, for this NodeTupleTable
      Specified by:
      getPolicy in interface NodeTupleTable
    • addRow

      public boolean addRow(org.apache.jena.graph.Node... nodes)
      Specified by:
      addRow in interface NodeTupleTable
    • deleteRow

      public boolean deleteRow(org.apache.jena.graph.Node... nodes)
      Specified by:
      deleteRow in interface NodeTupleTable
    • getTupleLen

      public int getTupleLen()
      Description copied from interface: NodeTupleTable
      The length of tuples managed. -1 indicates "variable length"
      Specified by:
      getTupleLen in interface NodeTupleTable
    • find

      public Iterator<org.apache.jena.atlas.lib.tuple.Tuple<org.apache.jena.graph.Node>> find(org.apache.jena.graph.Node... nodes)
      Find by node.
      Specified by:
      find in interface NodeTupleTable
    • findAsNodeIds

      public Iterator<org.apache.jena.atlas.lib.tuple.Tuple<NodeId>> findAsNodeIds(org.apache.jena.graph.Node... nodes)
      Find by node - return an iterator of NodeIds. Can return "null" (when a node is known to be unknown) for not found as well as NullIterator (when no tuples are found (unknown unknown).
      Specified by:
      findAsNodeIds in interface NodeTupleTable
    • find

      public Iterator<org.apache.jena.atlas.lib.tuple.Tuple<NodeId>> find(NodeId... ids)
      Find by NodeId.
      Specified by:
      find in interface NodeTupleTable
    • find

      public Iterator<org.apache.jena.atlas.lib.tuple.Tuple<NodeId>> find(org.apache.jena.atlas.lib.tuple.Tuple<NodeId> tuple)
      Find by NodeId.
      Specified by:
      find in interface NodeTupleTable
    • findAll

      public Iterator<org.apache.jena.atlas.lib.tuple.Tuple<NodeId>> findAll()
      Description copied from interface: NodeTupleTable
      Find all tuples
      Specified by:
      findAll in interface NodeTupleTable
    • getTupleTable

      public final TupleTable getTupleTable()
      Return the underlying tuple table - used with great care by tools that directly manipulate internal structures.
      Specified by:
      getTupleTable in interface NodeTupleTable
    • getNodeTable

      public final NodeTable getNodeTable()
      Return the node table
      Specified by:
      getNodeTable in interface NodeTupleTable
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface NodeTupleTable
    • clear

      public void clear()
      Clear the tuple table - does not clear the node table
      Specified by:
      clear in interface NodeTupleTable
    • size

      public long size()
      Specified by:
      size in interface NodeTupleTable
    • close

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

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