Class ConstantOptimizer

  • All Implemented Interfaces:
    QueryOptimizer
    Direct Known Subclasses:
    ConstantOptimizer

    public class ConstantOptimizer
    extends Object
    implements QueryOptimizer
    A query optimizer that optimizes constant value expressions.
    Author:
    James Leigh, Arjohn Kampman
    • Method Detail

      • optimize

        public void optimize​(TupleExpr tupleExpr,
                             Dataset dataset,
                             BindingSet bindings)
        Applies generally applicable optimizations to the supplied query: variable assignments are inlined.
        Specified by:
        optimize in interface QueryOptimizer