org.d2rq.jena
Class CachingGraphD2RQ

java.lang.Object
  extended by com.hp.hpl.jena.graph.impl.GraphBase
      extended by org.d2rq.jena.GraphD2RQ
          extended by org.d2rq.jena.CachingGraphD2RQ
All Implemented Interfaces:
Graph, GraphAdd, com.hp.hpl.jena.graph.impl.GraphWithPerform

public class CachingGraphD2RQ
extends GraphD2RQ

A GraphD2RQ that caches the results of the most recently performed queries on an LRU basis.

Author:
Holger Knublauch (holger@topquadrant.com)

Field Summary
 
Fields inherited from class com.hp.hpl.jena.graph.impl.GraphBase
bulkHandler, closed, gem, pm, queryHandler, reifier, statisticsHandler, style, TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT
 
Fields inherited from interface com.hp.hpl.jena.graph.Graph
emptyGraph
 
Constructor Summary
CachingGraphD2RQ(CompiledMapping mapping)
           
 
Method Summary
 void clearCache()
          Clears the current cache.
 com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> graphBaseFind(TripleMatch m)
          Overloaded to reuse and update the cache.
 
Methods inherited from class org.d2rq.jena.GraphD2RQ
checkOpen, close, getCapabilities, getMapping, queryHandler
 
Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase
add, constructReifier, contains, contains, containsByFind, createStatisticsHandler, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getBulkUpdateHandler, getEventManager, getPrefixMapping, getReifier, getStatisticsHandler, getTransactionHandler, graphBaseContains, graphBaseFind, graphBaseSize, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, performAdd, performDelete, reifierContains, reifierSize, reifierTriples, size, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.graph.Graph
contains, contains, delete, dependsOn, find, find, getBulkUpdateHandler, getEventManager, getPrefixMapping, getReifier, getStatisticsHandler, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, size
 
Methods inherited from interface com.hp.hpl.jena.graph.GraphAdd
add
 

Constructor Detail

CachingGraphD2RQ

public CachingGraphD2RQ(CompiledMapping mapping)
                 throws D2RQException
Throws:
D2RQException
Method Detail

clearCache

public void clearCache()
Clears the current cache. This can be used in case the database has been changed.


graphBaseFind

public com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> graphBaseFind(TripleMatch m)
Overloaded to reuse and update the cache.

Overrides:
graphBaseFind in class GraphD2RQ