public class LockableMGraphWrapperForTesting extends Object
| Constructor and Description |
|---|
LockableMGraphWrapperForTesting(Graph providedGraph)
Constructs a LocalbleGraph for an Graph.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Triple e) |
boolean |
addAll(Collection<? extends Triple> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
Iterator<Triple> |
filter(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Filters triples given a pattern.
|
ImmutableGraph |
getImmutableGraph()
Returns an ImutableGraph describing the graph at the current point in
time.
|
ReadWriteLock |
getLock()
The lock provided by this methods allows to create read- and write-locks
that span multiple method calls.
|
boolean |
isEmpty() |
Iterator<Triple> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithashCode, parallelStream, removeIf, spliterator, streampublic LockableMGraphWrapperForTesting(Graph providedGraph)
providedGraph - a non-lockable mgraphpublic Iterator<Triple> filter(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
Graphpublic int size()
size in interface Collection<Triple>public boolean isEmpty()
isEmpty in interface Collection<Triple>public boolean contains(Object o)
contains in interface Collection<Triple>public Object[] toArray()
toArray in interface Collection<Triple>public <T> T[] toArray(T[] a)
toArray in interface Collection<Triple>public boolean add(Triple e)
add in interface Collection<Triple>public boolean remove(Object o)
remove in interface Collection<Triple>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Triple>public boolean addAll(Collection<? extends Triple> c)
addAll in interface Collection<Triple>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<Triple>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<Triple>public void clear()
clear in interface Collection<Triple>public ImmutableGraph getImmutableGraph()
Graphthis is an instance of ImmutableGraph this can
safely return this.getImmutableGraph in interface Graphpublic ReadWriteLock getLock()
Graphjava.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)Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.