public class SimpleImmutableGraph extends AbstractImmutableGraph
| Constructor and Description |
|---|
SimpleImmutableGraph(Graph Graph)
Creates a ImmutableGraph with the triples in Graph
|
SimpleImmutableGraph(Graph Graph,
boolean GraphWillNeverChange)
Creates a ImmutableGraph with the triples in Graph.
|
SimpleImmutableGraph(Iterator<Triple> tripleIter) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Triple> |
performFilter(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
int |
performSize() |
add, addAll, clear, equals, getImmutableGraph, hashCode, remove, removeAllcontains, containsAll, filter, getLock, isEmpty, iterator, performAdd, performAddAll, performClear, performContains, performContainsAll, performGetImmutableGraph, performIsEmpty, performIterator, performRemove, performRemoveAll, performRetainAll, performToArray, performToArray, retainAll, size, toArray, toArraytoStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontains, containsAll, isEmpty, iterator, parallelStream, removeIf, retainAll, size, spliterator, stream, toArray, toArraypublic SimpleImmutableGraph(Graph Graph)
Graph - the collection of triples this ImmutableGraph shall consist ofpublic SimpleImmutableGraph(Graph Graph, boolean GraphWillNeverChange)
This construction allows to specify if the Graph might change in future. If GraphWillNeverChange is set to true it will assume that the collection never changes, in this case the collection isn't copied making things more efficient.
Graph - the collection of triples this ImmutableGraph shall consist ofGraphWillNeverChange - true if the caller promises Graph will never changepublic int performSize()
performSize in class AbstractGraphpublic Iterator<Triple> performFilter(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
performFilter in class AbstractGraphCopyright © 2015–2022 The Apache Software Foundation. All rights reserved.