[
https://issues.apache.org/jira/browse/JENA-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15445663#comment-15445663
]
ASF GitHub Bot commented on JENA-1228:
--------------------------------------
GitHub user afs opened a pull request:
https://github.com/apache/jena/pull/165
JENA-1228: Expose each optimization transform step in std optimizer.
https://issues.apache.org/jira/browse/JENA-1228
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/afs/jena optimize-reorg
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jena/pull/165.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #165
----
commit 91744594aeb3e55d9e2574b6e23fd24a77fedf2a
Author: Andy Seaborne <[email protected]>
Date: 2016-08-29T11:49:10Z
JENA-1228: Expose each optimization transform step as a protected method.
----
> Allow application code to replace part of the standard "Optimize" sequence.
> ---------------------------------------------------------------------------
>
> Key: JENA-1228
> URL: https://issues.apache.org/jira/browse/JENA-1228
> Project: Apache Jena
> Issue Type: Improvement
> Reporter: Andy Seaborne
> Priority: Minor
>
> A different optimization step can be installed with a global change:
> {noformat}
> Optimize.setFactory((cxt)->new MyNewOptimize(cxt)) ;
> {noformat}
> or on a specific {{Context}}:
> {noformat}
> Optimize.RewriterFactory f = (cxt)->new OptimizeTQ(cxt) ;
> context.set(ARQConstants.sysOptimizerFactory, f) ;
> {noformat}
> 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:
> {noformat}
> class MyNewOptimize extends Optimize
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)