Package org.apache.jena.sparql.core.mem
Interface QuadTable
-
- All Superinterfaces:
TransactionalComponent,TupleTable<Quad>
- All Known Implementing Classes:
HexTable,PMapQuadTable
public interface QuadTable extends TupleTable<Quad>
A simplex or multiplex table ofQuads. Implementations may wish to overridelistGraphNodes()with a more efficient implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclear()Clear all tuples from this table.java.util.stream.Stream<Quad>find(Node g, Node s, Node p, Node o)Search the table using a pattern of slots.default java.util.stream.Stream<Quad>findInUnionGraph(Node s, Node p, Node o)default java.util.stream.Stream<Node>listGraphNodes()Discover the graphs named in the table-
Methods inherited from interface org.apache.jena.sparql.core.mem.TransactionalComponent
begin, commit, end
-
Methods inherited from interface org.apache.jena.sparql.core.mem.TupleTable
abort, add, delete
-
-
-
-
Method Detail
-
find
java.util.stream.Stream<Quad> find(Node g, Node s, Node p, Node o)
Search the table using a pattern of slots.Node.ANYornullwill work as a wildcard.- Parameters:
g- the graph node of the patterns- the subject node of the patternp- the predicate node of the patterno- the object node of the pattern- Returns:
- an
Streamof matched quads
-
listGraphNodes
default java.util.stream.Stream<Node> listGraphNodes()
Discover the graphs named in the table- Returns:
- an
Streamof graph names used in this table
-
clear
default void clear()
Description copied from interface:TupleTableClear all tuples from this table.- Specified by:
clearin interfaceTupleTable<Quad>
-
-