Package org.aksw.jena_sparql_api.dboe
Class TripleTableWithInsertOrderPreservation
java.lang.Object
org.aksw.jena_sparql_api.dboe.TripleTableWithInsertOrderPreservation
- All Implemented Interfaces:
TripleTableCore
Decorator for TripleTableCore whose add/delete methods also sync a set (typically a LinkedHashSet)
Invocation of .find() with only placeholders yields a stream from that set instead
- Author:
- raven
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TripleTableCoreprotected Set<org.apache.jena.graph.Triple> -
Constructor Summary
ConstructorsConstructorDescriptionTripleTableWithInsertOrderPreservation(TripleTableCore delegate, Set<org.apache.jena.graph.Triple> collection) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.jena_sparql_api.dboe.TripleTableCore
contains, find, isEmpty
-
Field Details
-
delegate
-
triples
-
-
Constructor Details
-
TripleTableWithInsertOrderPreservation
-
TripleTableWithInsertOrderPreservation
public TripleTableWithInsertOrderPreservation(TripleTableCore delegate, Set<org.apache.jena.graph.Triple> collection)
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceTripleTableCore
-
add
public void add(org.apache.jena.graph.Triple quad) - Specified by:
addin interfaceTripleTableCore
-
delete
public void delete(org.apache.jena.graph.Triple quad) - Specified by:
deletein interfaceTripleTableCore
-
find
public Stream<org.apache.jena.graph.Triple> find(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) - Specified by:
findin interfaceTripleTableCore
-