| java.lang.Object com.hp.hpl.jena.graph.impl.WrappedGraph com.hp.hpl.jena.util.MonitorGraph
MonitorGraph | public class MonitorGraph extends WrappedGraph (Code) | | Graph wrapper which provides normal access to an underlying graph but
also maintains a snapshot of the triples it was last known to contain.
A snapshot action
causes the set of changes between this and the previous snapshot to
be calculated and the cache updated. The snapshot process will also
fire change notification.
author: Dave Reynolds version: $Revision: 1.4 $ |
Method Summary | |
public void | snapshot(List additions, List deletions) Compute the differences between the current monitored graph and the last
snapshot. |
snapshot | protected Set snapshot(Code) | | The last known snapshot, a set of triples
|
MonitorGraph | public MonitorGraph(Graph g)(Code) | | Constructor, wrap the given graph with a state monitor
|
snapshot | public void snapshot(List additions, List deletions)(Code) | | Compute the differences between the current monitored graph and the last
snapshot. The changes will also be forwarded to any listeners.
Then take a new snapshot.
Parameters: additions - a place in which the set of newly added triples should be noted, can be null Parameters: deletions - a place in which the set of newly deleted triples should be noted, can be null |
|
|