Module org.datanucleus
Class VarThisCompilationOptimiser
- java.lang.Object
-
- org.datanucleus.store.query.compiler.VarThisCompilationOptimiser
-
- All Implemented Interfaces:
CompilationOptimiser
public class VarThisCompilationOptimiser extends Object implements CompilationOptimiser
Optimiser for query compilation that searches for variable equality like "var == this". Since the variable is the same as the candidate it will replace all instances of the variable with the candidate. TODO We should only update "var == this" in the same branch of the filter (i.e not if used in other branches of the filter) Applies to the FILTER only.
-
-
Constructor Summary
Constructors Constructor Description VarThisCompilationOptimiser(QueryCompilation compilation, MetaDataManager unused, ClassLoaderResolver clr)
-
-
-
Constructor Detail
-
VarThisCompilationOptimiser
public VarThisCompilationOptimiser(QueryCompilation compilation, MetaDataManager unused, ClassLoaderResolver clr)
-
-
Method Detail
-
optimise
public void optimise()
Description copied from interface:CompilationOptimiser
Method to perform the optimisation.- Specified by:
optimise
in interfaceCompilationOptimiser
-
-