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 ofTriples.
-
-
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<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.ANYornullwill 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
Streamof matched triples
-
clear
default void clear()
Description copied from interface:TupleTableClear all tuples from this table.- Specified by:
clearin interfaceTupleTable<Triple>
-
-