Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Done
-
None
-
None
-
None
Description
A different optimization step can be installed with a global change:
Optimize.setFactory((cxt)->new MyNewOptimize(cxt)) ;
or on a specific Context:
Optimize.RewriterFactory f = (cxt)->new OptimizeTQ(cxt) ; context.set(ARQConstants.sysOptimizerFactory, f) ;
This is a complete replacement.
This JIRA is to allow specific steps to be replaced. This would be quite useful for development when specific transforms are being fixed or improved.
One way to do this is to make Optimize have protected methods for each optimization step thereby exposing the standard policy with the possibility of different transforms within that policy.
Thus:
class MyNewOptimize extends Optimize
Attachments
Issue Links
- links to