Class RDFLinkSourceWithRangeCache

java.lang.Object
org.aksw.jenax.dataaccess.sparql.linksource.RDFLinkSourceWrapperBase<RDFLinkSource>
org.aksw.jena_sparql_api.cache.advanced.RDFLinkSourceWithRangeCache
All Implemented Interfaces:
RDFLinkSource, RDFLinkSourceWrapper<RDFLinkSource>

public class RDFLinkSourceWithRangeCache extends RDFLinkSourceWrapperBase<RDFLinkSource>
This class wraps a data source with caching. The wrapping includes an additional MRSW lock (multiple reads or single writer) - so only a single write transaction is allowed at any time.
  • Field Details

    • datasetHash

      protected com.google.common.hash.HashCode datasetHash
    • stmtHashFn

      protected static com.google.common.hash.HashFunction stmtHashFn
      Hash functions for update statements
    • transactional

      protected org.apache.jena.sparql.core.Transactional transactional
      This lock takes precedence over any locking mechanism of the delegate data source
    • objectStore

      protected org.aksw.commons.store.object.key.api.ObjectStore objectStore
    • cacheConfig

      protected org.aksw.commons.io.cache.AdvancedRangeCacheConfig cacheConfig
    • arrayOps

      protected org.aksw.commons.io.buffer.array.ArrayOps<org.apache.jena.sparql.engine.binding.Binding[]> arrayOps
    • queryToCache

      protected com.google.common.cache.Cache<org.aksw.commons.path.core.Path<String>,org.aksw.commons.rx.lookup.ListPaginator<org.apache.jena.sparql.engine.binding.Binding>> queryToCache
  • Constructor Details

    • RDFLinkSourceWithRangeCache

      public RDFLinkSourceWithRangeCache(RDFLinkSource delegate, org.aksw.commons.store.object.key.api.ObjectStore objectStore, com.google.common.hash.HashCode datasetHash, int maxCachedQueries, org.aksw.commons.io.cache.AdvancedRangeCacheConfig cacheConfig)
  • Method Details