Module org.apache.jena.tdb
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
Group a tuple table and node table together to provide a real NodeTupleTable
-
Constructor Summary
ConstructorsConstructorDescriptionNodeTupleTableConcrete(int N, TupleIndex[] indexes, NodeTable nodeTable, DatasetControl dsControl) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddRow(org.apache.jena.graph.Node... nodes) voidclear()Clear the tuple table - does not clear the node tablefinal voidclose()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.final NodeTableReturn the node tableReturn the current policy, if any, for this NodeTupleTableintThe length of tuples managed.final TupleTableReturn the underlying tuple table - used with great care by tools that directly manipulate internal structures.booleanisEmpty()longsize()final voidsync()
-
Constructor Details
-
NodeTupleTableConcrete
public NodeTupleTableConcrete(int N, TupleIndex[] indexes, NodeTable nodeTable, DatasetControl dsControl)
-
-
Method Details
-
getPolicy
Description copied from interface:NodeTupleTableReturn the current policy, if any, for this NodeTupleTable- Specified by:
getPolicyin interfaceNodeTupleTable
-
addRow
public boolean addRow(org.apache.jena.graph.Node... nodes) - Specified by:
addRowin interfaceNodeTupleTable
-
deleteRow
public boolean deleteRow(org.apache.jena.graph.Node... nodes) - Specified by:
deleteRowin interfaceNodeTupleTable
-
getTupleLen
public int getTupleLen()Description copied from interface:NodeTupleTableThe length of tuples managed. -1 indicates "variable length"- Specified by:
getTupleLenin interfaceNodeTupleTable
-
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:
findin interfaceNodeTupleTable
-
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:
findAsNodeIdsin interfaceNodeTupleTable
-
find
Find by NodeId.- Specified by:
findin interfaceNodeTupleTable
-
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:
findin interfaceNodeTupleTable
-
findAll
Description copied from interface:NodeTupleTableFind all tuples- Specified by:
findAllin interfaceNodeTupleTable
-
getTupleTable
Return the underlying tuple table - used with great care by tools that directly manipulate internal structures.- Specified by:
getTupleTablein interfaceNodeTupleTable
-
getNodeTable
Return the node table- Specified by:
getNodeTablein interfaceNodeTupleTable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceNodeTupleTable
-
clear
public void clear()Clear the tuple table - does not clear the node table- Specified by:
clearin interfaceNodeTupleTable
-
size
public long size()- Specified by:
sizein interfaceNodeTupleTable
-
close
public final void close()- Specified by:
closein interfaceorg.apache.jena.atlas.lib.Closeable
-
sync
public final void sync()- Specified by:
syncin interfaceorg.apache.jena.atlas.lib.Sync
-