Class NodeTupleTableWrapper

java.lang.Object
org.apache.jena.tdb1.store.nodetupletable.NodeTupleTableWrapper
All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync, NodeTupleTable
Direct Known Subclasses:
NodeTupleTableView

public class NodeTupleTableWrapper extends Object implements NodeTupleTable
  • Constructor Details

    • NodeTupleTableWrapper

      public NodeTupleTableWrapper(NodeTupleTable ntt)
  • Method Details

    • 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)
      Description copied from interface: NodeTupleTable
      Find by node.
      Specified by:
      find in interface NodeTupleTable
    • find

      public Iterator<org.apache.jena.atlas.lib.tuple.Tuple<NodeId>> find(NodeId... ids)
      Description copied from interface: NodeTupleTable
      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)
      Description copied from interface: NodeTupleTable
      Find by NodeId.
      Specified by:
      find in interface NodeTupleTable
    • findAsNodeIds

      public Iterator<org.apache.jena.atlas.lib.tuple.Tuple<NodeId>> findAsNodeIds(org.apache.jena.graph.Node... nodes)
      Description copied from interface: NodeTupleTable
      Find by node - return an iterator of NodeIds. Can return "null" for not found as well as NullIterator
      Specified by:
      findAsNodeIds 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
    • getNodeTable

      public NodeTable getNodeTable()
      Description copied from interface: NodeTupleTable
      Return the node table
      Specified by:
      getNodeTable in interface NodeTupleTable
    • getTupleTable

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

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

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

      public void clear()
      Description copied from interface: NodeTupleTable
      Clear the tuple table. After this operation, find* will find nothing. This does not mean all data has been removed - for example, it does not mean that any node table has been emptied.
      Specified by:
      clear in interface NodeTupleTable
    • size

      public long size()
      Specified by:
      size in interface NodeTupleTable
    • 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