Class RdfDataSourceWithSimpleCache

java.lang.Object
org.aksw.jenax.dataaccess.sparql.datasource.RDFDataSourceWrapperBase<RDFDataSource>
org.aksw.jenax.dataaccess.sparql.polyfill.datasource.RdfDataSourceWithSimpleCache
All Implemented Interfaces:
RDFDataSource, RDFDataSourceWrapper<RDFDataSource>

public class RdfDataSourceWithSimpleCache extends RDFDataSourceWrapperBase<RDFDataSource>
RdfDataSource wrapper that uses a simple (= non-streaming) cache both successful and failed executions. The cache keys are of type Entry('queryForm', 'queryObjectOrString'). The cache values are either Exception, Table, List or List. Cancelling a query execution while it is being cached caches the encountered cancellation exception.
  • Field Details

    • cache

      protected com.github.benmanes.caffeine.cache.Cache<Object,Object> cache
  • Constructor Details

    • RdfDataSourceWithSimpleCache

      public RdfDataSourceWithSimpleCache(RDFDataSource delegate, com.github.benmanes.caffeine.cache.Cache<Object,Object> cache)
  • Method Details

    • getCache

      public com.github.benmanes.caffeine.cache.Cache<Object,Object> getCache()
    • getConnection

      public org.apache.jena.rdfconnection.RDFConnection getConnection()
      Description copied from interface: RDFDataSourceWrapper
      By default, use the delegate's connection.