public class UnionGraph extends AbstractGraph
Modifier and Type | Field and Description |
---|---|
protected Graph[] |
baseTripleCollections |
Constructor and Description |
---|
UnionGraph(Graph... baseTripleCollections)
Constructs a UnionGraph over the specified baseTripleCollections.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Triple e) |
boolean |
equals(Object obj)
Returns true if
other describes the same graph and will
always describe the same graph as this instance, false otherwise. |
ReadWriteLock |
getLock()
The lock provided by this methods allows to create read- and write-locks
that span multiple method calls.
|
int |
hashCode() |
Iterator<Triple> |
performFilter(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
int |
performSize() |
boolean |
remove(Object e) |
addAll, clear, contains, containsAll, filter, getImmutableGraph, isEmpty, iterator, performAdd, performAddAll, performClear, performContains, performContainsAll, performGetImmutableGraph, performIsEmpty, performIterator, performRemove, performRemoveAll, performRetainAll, performToArray, performToArray, removeAll, retainAll, size, toArray, toArray
toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
parallelStream, removeIf, spliterator, stream
protected Graph[] baseTripleCollections
public UnionGraph(Graph... baseTripleCollections)
baseTripleCollections
- the baseTripleCollectionspublic int performSize()
performSize
in class AbstractGraph
public Iterator<Triple> performFilter(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
performFilter
in class AbstractGraph
public boolean add(Triple e)
add
in interface Collection<Triple>
add
in class AbstractGraph
public boolean remove(Object e)
remove
in interface Collection<Triple>
remove
in class AbstractGraph
public boolean equals(Object obj)
Graph
other
describes the same graph and will
always describe the same graph as this instance, false otherwise.
It returns true if this == other or if it
is otherwise guaranteed that changes to one of the instances are
immediately reflected in the other or if both graphs are immutable.equals
in interface Collection<Triple>
equals
in interface Graph
equals
in class AbstractGraph
public int hashCode()
hashCode
in interface Collection<Triple>
hashCode
in class Object
public ReadWriteLock getLock()
Graph
java.util.concurrent.locks.ReentrantReadWriteLock
.
Immutable instances (such as instances of ImmutableGraph
)
or instances used in transaction where concurrent acces of the same
instance is not an issue may return a no-op ReadWriteLock (i.e. one
which returned ReadLock and WriteLock instances of which the methods do
not do anything)getLock
in interface Graph
getLock
in class AbstractGraph
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.