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, removeAll
contains, containsAll, filter, getLock, isEmpty, iterator, performAdd, performAddAll, performClear, performContains, performContainsAll, performGetImmutableGraph, performIsEmpty, performIterator, performRemove, performRemoveAll, performRetainAll, performToArray, performToArray, retainAll, size, toArray, toArray
toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contains, containsAll, isEmpty, iterator, parallelStream, removeIf, retainAll, size, spliterator, stream, toArray, toArray
public 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 AbstractGraph
public Iterator<Triple> performFilter(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
performFilter
in class AbstractGraph
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.