public class VirtuosoMGraph extends AbstractMGraph implements MGraph, LockableMGraph
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger
Logger
|
Constructor and Description |
---|
VirtuosoMGraph(String name,
DataAccess dataAccess)
Creates a
VirtuosoMGraph Virtuoso MGraph binds directly to the
store. |
Modifier and Type | Method and Description |
---|---|
VirtuosoGraph |
asVirtuosoGraph() |
void |
clear() |
boolean |
equals(Object o)
Must be a VirtuosoMGraph with the same name.
|
protected DataAccess |
getDataAccess() |
Graph |
getGraph()
Returns the graph
|
java.util.concurrent.locks.ReadWriteLock |
getLock()
The lock provided by this methods allows to create read- and write-locks
that span individual method calls.
|
String |
getName()
Returns the graph name
|
protected boolean |
performAdd(Triple triple)
A subclass of
AbstractTripleCollection should override
this method instead of add for graph event support to be
added. |
protected Iterator<Triple> |
performFilter(NonLiteral subject,
UriRef predicate,
Resource object)
A subclass of
AbstractTripleCollection should override
this method instead of filter for graph event support to be
added. |
protected boolean |
performRemove(Triple triple)
A subclass of
AbstractTripleCollection should override
this method instead of remove for graph event support to be
added. |
int |
size()
We load the size every time it is requested.
|
add, addGraphListener, addGraphListener, contains, dispatchEvent, filter, iterator, remove, removeAll, removeGraphListener
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addGraphListener, addGraphListener, filter, removeGraphListener
public VirtuosoMGraph(String name, DataAccess dataAccess)
VirtuosoMGraph
Virtuoso MGraph binds directly to the
store.connection
- public java.util.concurrent.locks.ReadWriteLock getLock()
LockableMGraph
getLock
in interface LockableMGraph
public Graph getGraph()
MGraph
getGraph
in interface MGraph
getGraph
in class AbstractMGraph
public VirtuosoGraph asVirtuosoGraph()
protected DataAccess getDataAccess()
protected Iterator<Triple> performFilter(NonLiteral subject, UriRef predicate, Resource object)
AbstractTripleCollection
AbstractTripleCollection
should override
this method instead of filter
for graph event support to be
added. The Iterator returned by filter
will dispatch a
GraphEvent after invoking the remove method of the iterator returned by
this method.performFilter
in class AbstractTripleCollection
public int size()
size
in interface Collection<Triple>
size
in class AbstractCollection<Triple>
public void clear()
clear
in interface Collection<Triple>
clear
in class AbstractCollection<Triple>
protected boolean performAdd(Triple triple)
AbstractTripleCollection
AbstractTripleCollection
should override
this method instead of add
for graph event support to be
added.performAdd
in class AbstractTripleCollection
triple
- The triple to be added to the triple collectionprotected boolean performRemove(Triple triple)
AbstractTripleCollection
AbstractTripleCollection
should override
this method instead of remove
for graph event support to be
added.performRemove
in class AbstractTripleCollection
public String getName()
public boolean equals(Object o)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.