Class AbstractEvaluationStrategyFactory
java.lang.Object
org.eclipse.rdf4j.query.algebra.evaluation.impl.AbstractEvaluationStrategyFactory
- All Implemented Interfaces:
EvaluationStrategyFactory
- Direct Known Subclasses:
DefaultEvaluationStrategyFactory,ExtendedEvaluationStrategyFactory,StrictEvaluationStrategyFactory
public abstract class AbstractEvaluationStrategyFactory
extends Object
implements EvaluationStrategyFactory
Abstract base class for
ExtendedEvaluationStrategy.- Author:
- Jeen Broekstra
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet theQueryOptimizerPipelinethat this factory will inject into theEvaluationStrategy, if any.longGet the number of query solutions theEvaluationStrategywill keep in main memory before it attempts to sync to a temporary disk cache.booleanReturns the status of the result size tracking for the query plan.voidsetOptimizerPipeline(QueryOptimizerPipeline pipeline) Set aQueryOptimizerPipelineto be used for query execution planning by theEvaluationStrategy.voidsetQuerySolutionCacheThreshold(long threshold) Set the number of query solutions theEvaluationStrategywill keep in main memory before it attempts to sync to a temporary disk cache.voidsetTrackResultSize(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, waitMethods inherited from interface org.eclipse.rdf4j.query.algebra.evaluation.EvaluationStrategyFactory
createEvaluationStrategy, setCollectionFactory
-
Constructor Details
-
AbstractEvaluationStrategyFactory
public AbstractEvaluationStrategyFactory()
-
-
Method Details
-
setQuerySolutionCacheThreshold
public void setQuerySolutionCacheThreshold(long threshold) Description copied from interface:EvaluationStrategyFactorySet the number of query solutions theEvaluationStrategywill 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:
setQuerySolutionCacheThresholdin 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:EvaluationStrategyFactoryGet the number of query solutions theEvaluationStrategywill 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:
getQuerySolutionCacheThresholdin interfaceEvaluationStrategyFactory
-
setOptimizerPipeline
Description copied from interface:EvaluationStrategyFactorySet aQueryOptimizerPipelineto be used for query execution planning by theEvaluationStrategy.- Specified by:
setOptimizerPipelinein interfaceEvaluationStrategyFactory- Parameters:
pipeline- aQueryOptimizerPipeline
-
getOptimizerPipeline
Description copied from interface:EvaluationStrategyFactoryGet theQueryOptimizerPipelinethat this factory will inject into theEvaluationStrategy, if any. If noQueryOptimizerPipelineis defined, theEvaluationStrategyitself determines the pipeline.- Specified by:
getOptimizerPipelinein interfaceEvaluationStrategyFactory- Returns:
- a
QueryOptimizerPipeline, orOptional.empty()if no pipeline is set on this factory.
-
isTrackResultSize
public boolean isTrackResultSize()Description copied from interface:EvaluationStrategyFactoryReturns 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:
isTrackResultSizein interfaceEvaluationStrategyFactory- Returns:
- true if result size tracking is enabled.
-
setTrackResultSize
public void setTrackResultSize(boolean trackResultSize) Description copied from interface:EvaluationStrategyFactoryEnable or disable results size tracking for the query plan. Useful to determine which parts of a query plan generated the most data.- Specified by:
setTrackResultSizein interfaceEvaluationStrategyFactory- Parameters:
trackResultSize- true to enable tracking.
-