Package org.apache.jena.sparql.core.mem
Interface TripleTable
-
- All Superinterfaces:
TransactionalComponent
,TupleTable<Triple>
- All Known Implementing Classes:
PMapTripleTable
,TriTable
public interface TripleTable extends TupleTable<Triple>
A simplex or multiplex table ofTriple
s.
-
-
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<Triple>
find(Node s, Node p, Node o)
Search the table using a pattern of slots.-
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<Triple> find(Node s, Node p, Node o)
Search the table using a pattern of slots.Node.ANY
ornull
will work as a wildcard.- Parameters:
s
- the subject node of the patternp
- the predicate node of the patterno
- the object node of the pattern- Returns:
- an
Stream
of matched triples
-
clear
default void clear()
Description copied from interface:TupleTable
Clear all tuples from this table.- Specified by:
clear
in interfaceTupleTable<Triple>
-
-