Module org.apache.jena.tdb
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 TypeMethodDescriptionbooleanaddRow(org.apache.jena.graph.Node... nodes) voidclear()Clear the tuple table.booleandeleteRow(org.apache.jena.graph.Node... nodes) 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.Find by NodeId.findAll()Find all tuplesfindAsNodeIds(org.apache.jena.graph.Node... nodes) Find by node - return an iterator of NodeIds.Return the node tableReturn the current policy, if any, for this NodeTupleTableintThe length of tuples managed.Return the underlying tuple table - used with great care by tools that directly manipulate internal structures.booleanisEmpty()longsize()Methods inherited from interface org.apache.jena.atlas.lib.Closeable
closeMethods 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
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
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
-