Class AbstractEvaluationStrategyFactory
java.lang.Object
org.eclipse.rdf4j.query.algebra.evaluation.impl.AbstractEvaluationStrategyFactory
- All Implemented Interfaces:
EvaluationStrategyFactory
- Direct Known Subclasses:
ExtendedEvaluationStrategyFactory
,StrictEvaluationStrategyFactory
public abstract class AbstractEvaluationStrategyFactory
extends Object
implements EvaluationStrategyFactory
Abstract base class for
ExtendedEvaluationStrategy
.- Author:
- Jeen Broekstra
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet theQueryOptimizerPipeline
that this factory will inject into theEvaluationStrategy
, if any.long
Get the number of query solutions theEvaluationStrategy
will keep in main memory before it attempts to sync to a temporary disk cache.boolean
Returns the status of the result size tracking for the query plan.void
setOptimizerPipeline
(QueryOptimizerPipeline pipeline) Set aQueryOptimizerPipeline
to be used for query execution planning by theEvaluationStrategy
.void
setQuerySolutionCacheThreshold
(long threshold) Set the number of query solutions theEvaluationStrategy
will keep in main memory before it attempts to sync to a temporary disk cache.void
setTrackResultSize
(boolean trackResultSize) Enable or disable results size tracking for the query plan.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.query.algebra.evaluation.EvaluationStrategyFactory
createEvaluationStrategy
-
Constructor Details
-
AbstractEvaluationStrategyFactory
public AbstractEvaluationStrategyFactory()
-
-
Method Details
-
setQuerySolutionCacheThreshold
public void setQuerySolutionCacheThreshold(long threshold) Description copied from interface:EvaluationStrategyFactory
Set the number of query solutions theEvaluationStrategy
will keep in main memory before it attempts to sync to a temporary disk cache. If set to 0, no disk caching will occur. EvaluationStrategies that provide no disk caching functionality are free to ignore this parameter.- Specified by:
setQuerySolutionCacheThreshold
in interfaceEvaluationStrategyFactory
- Parameters:
threshold
- the number of query solutions that the EvaluationStrategy can cache in main memory before attempting disk sync.
-
getQuerySolutionCacheThreshold
public long getQuerySolutionCacheThreshold()Description copied from interface:EvaluationStrategyFactory
Get the number of query solutions theEvaluationStrategy
will keep in main memory before it attempts to sync to a temporary disk cache. If set to 0, no disk caching will occur. EvaluationStrategies that provide no disk caching functionality are free to ignore this parameter.- Specified by:
getQuerySolutionCacheThreshold
in interfaceEvaluationStrategyFactory
-
setOptimizerPipeline
Description copied from interface:EvaluationStrategyFactory
Set aQueryOptimizerPipeline
to be used for query execution planning by theEvaluationStrategy
.- Specified by:
setOptimizerPipeline
in interfaceEvaluationStrategyFactory
- Parameters:
pipeline
- aQueryOptimizerPipeline
-
getOptimizerPipeline
Description copied from interface:EvaluationStrategyFactory
Get theQueryOptimizerPipeline
that this factory will inject into theEvaluationStrategy
, if any. If noQueryOptimizerPipeline
is defined, theEvaluationStrategy
itself determines the pipeline.- Specified by:
getOptimizerPipeline
in interfaceEvaluationStrategyFactory
- Returns:
- a
QueryOptimizerPipeline
, orOptional.empty()
if no pipeline is set on this factory.
-
isTrackResultSize
public boolean isTrackResultSize()Description copied from interface:EvaluationStrategyFactory
Returns the status of the result size tracking for the query plan. Useful to determine which parts of a query plan generated the most data.- Specified by:
isTrackResultSize
in interfaceEvaluationStrategyFactory
- Returns:
- true if result size tracking is enabled.
-
setTrackResultSize
public void setTrackResultSize(boolean trackResultSize) Description copied from interface:EvaluationStrategyFactory
Enable or disable results size tracking for the query plan. Useful to determine which parts of a query plan generated the most data.- Specified by:
setTrackResultSize
in interfaceEvaluationStrategyFactory
- Parameters:
trackResultSize
- true to enable tracking.
-