public class CollectionGraph extends GraphBase
This implementation:
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMITemptyGraph| Constructor and Description |
|---|
CollectionGraph()
Construct an empty graph using an empty HashSet.
|
CollectionGraph(Collection<Triple> triples)
Construct a graph from a collection.
|
CollectionGraph(Collection<Triple> triples,
boolean iteratorDeleteAllowed)
Construct a graph from a collection.
|
| Modifier and Type | Method and Description |
|---|---|
Capabilities |
getCapabilities()
Answer the capabilities of this graph; the default is an AllCapabilities object
(the same one each time, not that it matters - Capabilities should be
immutable).
|
void |
performAdd(Triple t)
Add a triple to the triple store.
|
void |
performDelete(Triple t)
Remove a triple from the triple store.
|
add, clear, close, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getEventManager, getPrefixMapping, getStatisticsHandler, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, remove, size, toString, toStringpublic CollectionGraph()
public CollectionGraph(Collection<Triple> triples)
triples - The collection of triples.public CollectionGraph(Collection<Triple> triples, boolean iteratorDeleteAllowed)
triples - The collection of triples.iteratorDeleteAllowed - if true iterator on triple supports deletion and we want to enable iterator deletion.public void performAdd(Triple t)
GraphBaseperformAdd in interface GraphWithPerformperformAdd in class GraphBasepublic void performDelete(Triple t)
GraphBaseperformDelete in interface GraphWithPerformperformDelete in class GraphBasepublic Capabilities getCapabilities()
GraphBasegetCapabilities in interface GraphgetCapabilities in class GraphBaseLicenced under the Apache License, Version 2.0