Interface NodeTupleTable

All Superinterfaces:
org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync
All Known Implementing Classes:
NodeTupleTableConcrete, NodeTupleTableView, NodeTupleTableWrapper

public interface NodeTupleTable extends org.apache.jena.atlas.lib.Sync, org.apache.jena.atlas.lib.Closeable
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addRow(org.apache.jena.graph.Node... nodes)
     
    void
    Clear the tuple table.
    boolean
    deleteRow(org.apache.jena.graph.Node... nodes)
     
    Iterator<org.apache.jena.atlas.lib.tuple.Tuple<NodeId>>
    find(org.apache.jena.atlas.lib.tuple.Tuple<NodeId> ids)
    Find by NodeId.
    Iterator<org.apache.jena.atlas.lib.tuple.Tuple<org.apache.jena.graph.Node>>
    find(org.apache.jena.graph.Node... nodes)
    Find by node.
    Iterator<org.apache.jena.atlas.lib.tuple.Tuple<NodeId>>
    find(NodeId... ids)
    Find by NodeId.
    Iterator<org.apache.jena.atlas.lib.tuple.Tuple<NodeId>>
    Find all tuples
    Iterator<org.apache.jena.atlas.lib.tuple.Tuple<NodeId>>
    findAsNodeIds(org.apache.jena.graph.Node... nodes)
    Find by node - return an iterator of NodeIds.
    Return the node table
    Return the current policy, if any, for this NodeTupleTable
    int
    The length of tuples managed.
    Return the underlying tuple table - used with great care by tools that directly manipulate internal structures.
    boolean
     
    long
     

    Methods inherited from interface org.apache.jena.atlas.lib.Closeable

    close

    Methods inherited from interface org.apache.jena.atlas.lib.Sync

    sync
  • Method Details

    • addRow

      boolean addRow(org.apache.jena.graph.Node... nodes)
    • deleteRow

      boolean deleteRow(org.apache.jena.graph.Node... nodes)
    • getTupleLen

      int getTupleLen()
      The length of tuples managed. -1 indicates "variable length"
    • find

      Iterator<org.apache.jena.atlas.lib.tuple.Tuple<org.apache.jena.graph.Node>> find(org.apache.jena.graph.Node... nodes)
      Find by node.
    • findAsNodeIds

      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" for not found as well as NullIterator
    • find

      Iterator<org.apache.jena.atlas.lib.tuple.Tuple<NodeId>> find(NodeId... ids)
      Find by NodeId.
    • find

      Iterator<org.apache.jena.atlas.lib.tuple.Tuple<NodeId>> find(org.apache.jena.atlas.lib.tuple.Tuple<NodeId> ids)
      Find by NodeId.
    • findAll

      Iterator<org.apache.jena.atlas.lib.tuple.Tuple<NodeId>> findAll()
      Find all tuples
    • getTupleTable

      TupleTable getTupleTable()
      Return the underlying tuple table - used with great care by tools that directly manipulate internal structures.
    • getNodeTable

      NodeTable getNodeTable()
      Return the node table
    • isEmpty

      boolean isEmpty()
    • clear

      void clear()
      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.
    • size

      long size()
    • getPolicy

      DatasetControl getPolicy()
      Return the current policy, if any, for this NodeTupleTable