Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1228

Allow application code to replace part of the standard "Optimize" sequence.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Done
    • None
    • Jena 3.1.1
    • 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

          Activity

            People

              andy Andy Seaborne
              andy Andy Seaborne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: