Class StorageTuples
- java.lang.Object
-
- org.apache.jena.dboe.storage.simple.StorageTuples
-
- All Implemented Interfaces:
StorageRDF
- Direct Known Subclasses:
StorageSimpleMem
public abstract class StorageTuples extends java.lang.Object implements StorageRDF
Split into storage of tuples/3 for triples and tuples/4 for quads
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Node s, Node p, Node o)Add a triple to the default graph.voidadd(Node g, Node s, Node p, Node o)Add to a named graph.booleancontains(Node s, Node p, Node o)Test whether the default graph contains the triple.booleancontains(Node g, Node s, Node p, Node o)Test whether any named graph matches the quad.voiddelete(Node s, Node p, Node o)Delete from the default graph.voiddelete(Node g, Node s, Node p, Node o)Delete from a named graph.java.util.Iterator<Triple>find(Node s, Node p, Node o)Find in the default graph.java.util.Iterator<Quad>find(Node g, Node s, Node p, Node o)Find in named graphs: does not look in the default graph.voidremoveAll(Node s, Node p, Node o)Delete all triples matching afind-like pattern.voidremoveAll(Node g, Node s, Node p, Node o)Delete all quads matching afind-like pattern.java.util.stream.Stream<Triple>stream(Node s, Node p, Node o)Find in the default graph.java.util.stream.Stream<Quad>stream(Node g, Node s, Node p, Node o)Find in named graphs: does not look in the default graph.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jena.dboe.storage.StorageRDF
add, add, contains, contains, delete, delete, find, find, findUnionGraph, stream, stream, streamUnionGraph
-
-
-
-
Method Detail
-
add
public void add(Node s, Node p, Node o)
Description copied from interface:StorageRDFAdd a triple to the default graph.Concrete operation.
- Specified by:
addin interfaceStorageRDF
-
add
public void add(Node g, Node s, Node p, Node o)
Description copied from interface:StorageRDFAdd to a named graph.Concrete operation.
- Specified by:
addin interfaceStorageRDF
-
delete
public void delete(Node s, Node p, Node o)
Description copied from interface:StorageRDFDelete from the default graph.s,p,oare all concrete.Concrete operation.
See
StorageRDF.removeAll(Node, Node, Node)for remove by pattern.- Specified by:
deletein interfaceStorageRDF
-
delete
public void delete(Node g, Node s, Node p, Node o)
Description copied from interface:StorageRDFDelete from a named graph.s,p,oare all concrete.Concrete operation.
See
StorageRDF.removeAll(Node, Node, Node, Node)for remove by pattern.- Specified by:
deletein interfaceStorageRDF
-
removeAll
public void removeAll(Node s, Node p, Node o)
Description copied from interface:StorageRDFDelete all triples matching afind-like pattern.Pattern operation.
- Specified by:
removeAllin interfaceStorageRDF
-
removeAll
public void removeAll(Node g, Node s, Node p, Node o)
Description copied from interface:StorageRDFDelete all quads matching afind-like pattern.Pattern operation.
- Specified by:
removeAllin interfaceStorageRDF
-
find
public java.util.Iterator<Triple> find(Node s, Node p, Node o)
Description copied from interface:StorageRDFFind in the default graph.Pattern operation.
- Specified by:
findin interfaceStorageRDF
-
find
public java.util.Iterator<Quad> find(Node g, Node s, Node p, Node o)
Description copied from interface:StorageRDFFind in named graphs: does not look in the default graph.Pattern operation.
- Specified by:
findin interfaceStorageRDF
-
stream
public java.util.stream.Stream<Triple> stream(Node s, Node p, Node o)
Description copied from interface:StorageRDFFind in the default graph.Pattern operation.
- Specified by:
streamin interfaceStorageRDF
-
stream
public java.util.stream.Stream<Quad> stream(Node g, Node s, Node p, Node o)
Description copied from interface:StorageRDFFind in named graphs: does not look in the default graph.Pattern operation.
- Specified by:
streamin interfaceStorageRDF
-
contains
public boolean contains(Node s, Node p, Node o)
Description copied from interface:StorageRDFTest whether the default graph contains the triple.Pattern operation.
Equivalent to
find(s,p,o).hasNext().- Specified by:
containsin interfaceStorageRDF
-
contains
public boolean contains(Node g, Node s, Node p, Node o)
Description copied from interface:StorageRDFTest whether any named graph matches the quad.Pattern operation.
Equivalent to
find(g,s,p,o).hasNext().- Specified by:
containsin interfaceStorageRDF
-
-