Class ConstantOptimizer

  • All Implemented Interfaces:
    QueryOptimizer

    @Deprecated(forRemoval=true,
                since="4.1.0")
    public class ConstantOptimizer
    extends Object
    implements QueryOptimizer
    Deprecated, for removal: This API element is subject to removal in a future version.
    A query optimizer that optimizes constant value expressions.
    Author:
    James Leigh, Arjohn Kampman
    • Field Detail

      • logger

        protected static final org.slf4j.Logger logger
        Deprecated, for removal: This API element is subject to removal in a future version.
      • strategy

        protected final EvaluationStrategy strategy
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Constructor Detail

      • ConstantOptimizer

        public ConstantOptimizer​(EvaluationStrategy strategy)
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • optimize

        public void optimize​(TupleExpr tupleExpr,
                             Dataset dataset,
                             BindingSet bindings)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Applies generally applicable optimizations to the supplied query: variable assignments are inlined.
        Specified by:
        optimize in interface QueryOptimizer