Class GBDTOptimizer
- java.lang.Object
-
- com.yahoo.searchlib.rankingexpression.evaluation.Optimizer
-
- com.yahoo.searchlib.rankingexpression.evaluation.gbdtoptimization.GBDTOptimizer
-
public class GBDTOptimizer extends Optimizer
This ranking expression processor recognizes and optimizes GBDT expressions. Note that this optimization is destructive - inspection is not possible into optimized subtrees.
This class is not multithread safe.
- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description GBDTOptimizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
optimize(RankingExpression expression, ContextIndex context, OptimizationReport report)
Optimizes this by replacing GBDT sub-expressions by GBDTNodes.-
Methods inherited from class com.yahoo.searchlib.rankingexpression.evaluation.Optimizer
isEnabled, setEnabled
-
-
-
-
Method Detail
-
optimize
public void optimize(RankingExpression expression, ContextIndex context, OptimizationReport report)
Optimizes this by replacing GBDT sub-expressions by GBDTNodes. These optimized expressions must be executed using an instance ofArrayContext
as context. These thread locally reusable contexts must be created from the ranking expression before the ranking expression is optimized.
-
-