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 forExtendedEvaluationStrategy.- Author:
- Jeen Broekstra
-
-
Constructor Summary
Constructors Constructor Description AbstractEvaluationStrategyFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<QueryOptimizerPipeline>getOptimizerPipeline()Get theQueryOptimizerPipelinethat this factory will inject into theEvaluationStrategy, if any.longgetQuerySolutionCacheThreshold()Get the number of query solutions theEvaluationStrategywill keep in main memory before it attempts to sync to a temporary disk cache.booleanisTrackResultSize()Returns 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, wait
-
Methods inherited from interface org.eclipse.rdf4j.query.algebra.evaluation.EvaluationStrategyFactory
createEvaluationStrategy, setCollectionFactory
-
-
-
-
Method Detail
-
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
public void setOptimizerPipeline(QueryOptimizerPipeline pipeline)
Description copied from interface:EvaluationStrategyFactorySet aQueryOptimizerPipelineto be used for query execution planning by theEvaluationStrategy.- Specified by:
setOptimizerPipelinein interfaceEvaluationStrategyFactory- Parameters:
pipeline- aQueryOptimizerPipeline
-
getOptimizerPipeline
public Optional<QueryOptimizerPipeline> 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.
-
-