Class 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 Detail

      • GBDTOptimizer

        public GBDTOptimizer()
    • 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 of ArrayContext as context. These thread locally reusable contexts must be created from the ranking expression before the ranking expression is optimized.
        Specified by:
        optimize in class Optimizer
        Parameters:
        expression - the expression to destructively optimize
        context - a fast lookup context created from the given expression
        report - the optimization report to which actions of this is logged