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>
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class org.aksw.jenax.dataaccess.sparql.datasource.RDFDataSourceWrapperBase
delegate -
Constructor Summary
ConstructorsConstructorDescriptionRdfDataSourceWithSimpleCache(RDFDataSource delegate, com.github.benmanes.caffeine.cache.Cache<Object, Object> cache) -
Method Summary
Modifier and TypeMethodDescriptiongetCache()org.apache.jena.rdfconnection.RDFConnectionBy default, use the delegate's connection.Methods inherited from class org.aksw.jenax.dataaccess.sparql.datasource.RDFDataSourceWrapperBase
getDelegateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.jenax.dataaccess.sparql.datasource.RDFDataSource
asLinkSource, asQef, getDataset, newQuery, newUpdate, query, query, update, update, update
-
Field Details
-
cache
-
-
Constructor Details
-
RdfDataSourceWithSimpleCache
public RdfDataSourceWithSimpleCache(RDFDataSource delegate, com.github.benmanes.caffeine.cache.Cache<Object, Object> cache)
-
-
Method Details
-
getCache
-
getConnection
public org.apache.jena.rdfconnection.RDFConnection getConnection()Description copied from interface:RDFDataSourceWrapperBy default, use the delegate's connection.
-