public interface EvaluationStrategyFactory
EvaluationStrategy
s.Modifier and Type | Method and Description |
---|---|
EvaluationStrategy |
createEvaluationStrategy(Dataset dataset,
TripleSource tripleSource,
EvaluationStatistics evaluationStatistics)
|
Optional<QueryOptimizerPipeline> |
getOptimizerPipeline()
Get the
QueryOptimizerPipeline that this factory will inject into the EvaluationStrategy , if any. |
long |
getQuerySolutionCacheThreshold()
Get the number of query solutions the
EvaluationStrategy will keep in main memory before it attempts to
sync to a temporary disk cache. |
default boolean |
isTrackResultSize()
Returns the status of the result size tracking for the query plan.
|
void |
setOptimizerPipeline(QueryOptimizerPipeline pipeline)
Set a
QueryOptimizerPipeline to be used for query execution planning by the EvaluationStrategy . |
void |
setQuerySolutionCacheThreshold(long threshold)
Set the number of query solutions the
EvaluationStrategy will keep in main memory before it attempts to
sync to a temporary disk cache. |
default void |
setTrackResultSize(boolean trackResultSize)
Enable or disable results size tracking for the query plan.
|
void setQuerySolutionCacheThreshold(long threshold)
EvaluationStrategy
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.threshold
- the number of query solutions that the EvaluationStrategy can cache in main memory before
attempting disk sync.long getQuerySolutionCacheThreshold()
EvaluationStrategy
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.void setOptimizerPipeline(QueryOptimizerPipeline pipeline)
QueryOptimizerPipeline
to be used for query execution planning by the EvaluationStrategy
.pipeline
- a QueryOptimizerPipeline
Optional<QueryOptimizerPipeline> getOptimizerPipeline()
QueryOptimizerPipeline
that this factory will inject into the EvaluationStrategy
, if any.
If no QueryOptimizerPipeline
is defined, the EvaluationStrategy
itself determines the pipeline.QueryOptimizerPipeline
, or Optional.empty()
if no pipeline is set on this factory.EvaluationStrategy createEvaluationStrategy(Dataset dataset, TripleSource tripleSource, EvaluationStatistics evaluationStatistics)
dataset
- the DataSet to evaluate queries against.tripleSource
- the TripleSource to evaluate queries against.evaluationStatistics
- the store evaluation statistics to use for query optimization.default boolean isTrackResultSize()
default void setTrackResultSize(boolean trackResultSize)
trackResultSize
- true to enable tracking.Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.