Class ResultCachingGraphQuery
java.lang.Object
org.eclipse.rdf4j.spring.support.query.DelegatingGraphQuery
org.eclipse.rdf4j.spring.resultcache.ResultCachingGraphQuery
- All Implemented Interfaces:
GraphQuery, Operation, Query
- Since:
- 4.0.0
- Author:
- Florian Kleedorfer
-
Nested Class Summary
Nested classes/interfaces inherited from interface Query
Query.QueryTypeModifier and TypeInterfaceDescriptionstatic enumThe different types of queries that RDF4J recognizes: boolean queries, graph queries, and tuple queries. -
Constructor Summary
ConstructorsConstructorDescriptionResultCachingGraphQuery(GraphQuery delegate, ResultCache<Integer, ReusableGraphQueryResult> localResultCache, ResultCache<Integer, ReusableGraphQueryResult> globalResultCache, ResultCacheProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionevaluate()voidrenewLocalResultCache(ResultCache<Integer, ReusableGraphQueryResult> localGraphQueryResultCache) Methods inherited from class DelegatingGraphQuery
clearBindings, evaluate, explain, getBindings, getDataset, getDelegate, getIncludeInferred, getMaxExecutionTime, getMaxQueryTime, removeBinding, setBinding, setDataset, setIncludeInferred, setMaxExecutionTime, setMaxQueryTime, toStringModifier and TypeMethodDescriptionvoidRemoves all previously set bindings.voidevaluate(RDFHandler handler) explain(Explanation.Level level) Explain how the query will be (or has been) executed/evaluated by returning an explanation of the query plan.Retrieves the bindings that have been set on this operation.Gets the dataset that has been set usingOperation.setDataset(Dataset), if any.protected GraphQuerybooleanReturns whether or not this operation will return inferred statements (if any are present in the repository).intReturns the maximum operation execution time.intDeprecated.voidremoveBinding(String name) Removes a previously set binding on the supplied variable.voidsetBinding(String name, Value value) Binds the specified variable to the supplied value.voidsetDataset(Dataset dataset) Specifies the dataset against which to execute an operation, overriding any dataset that is specified in the operation itself.voidsetIncludeInferred(boolean includeInferred) Determine whether evaluation results of this operation should include inferred statements (if any inferred statements are present in the repository).voidsetMaxExecutionTime(int maxExecutionTimeSeconds) Specifies the maximum time that an operation is allowed to run.voidsetMaxQueryTime(int maxQueryTime) Deprecated.toString()
-
Constructor Details
-
ResultCachingGraphQuery
public ResultCachingGraphQuery(GraphQuery delegate, ResultCache<Integer, ReusableGraphQueryResult> localResultCache, ResultCache<Integer, ReusableGraphQueryResult> globalResultCache, ResultCacheProperties properties)
-
-
Method Details
-
renewLocalResultCache
public void renewLocalResultCache(ResultCache<Integer, ReusableGraphQueryResult> localGraphQueryResultCache) -
evaluate
- Specified by:
evaluatein interfaceGraphQuery- Overrides:
evaluatein classDelegatingGraphQuery- Throws:
QueryEvaluationException
-