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 ofQuad
s. 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 void
clear()
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.ANY
ornull
will 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
Stream
of matched quads
-
listGraphNodes
default java.util.stream.Stream<Node> listGraphNodes()
Discover the graphs named in the table- Returns:
- an
Stream
of graph names used in this table
-
clear
default void clear()
Description copied from interface:TupleTable
Clear all tuples from this table.- Specified by:
clear
in interfaceTupleTable<Quad>
-
-