java.lang.Object
org.apache.jena.sparql.algebra.optimize.Optimize
Optimization of algebra expressions.
New optimization processes can be installed via a global change:
Optimize.setFactory((cxt)->new MyOptimizer(cxt)) ;or on a per-context basis:
Optimize.RewriterFactory f = (cxt)->new MyOptimizer(cxt) ; context.set(ARQConstants.sysOptimizerFactory, f) ;
-
Field Summary
Modifier and TypeFieldDescriptionstatic RewriteFactory
Factory for the "minimal" optimizer.static RewriteFactory
Factory for the "Do nothing" optimizer.static RewriteFactory
Factory for the standard optimization sequnece. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Op
static void
Set the global optimizer factory to one that only does property functions and scoped variables.static RewriteFactory
Get the global factory for making optimizersstatic void
Set the global optimizer factory to one that does nothing.static Op
optimize
(Op op, ExecutionContext execCxt) static Op
Optimize based on all optionsstatic void
setFactory
(RewriteFactory aFactory) Globally set the factory for making optimizers
-
Field Details
-
noOptimizationFactory
Factory for the "Do nothing" optimizer. -
minimalOptimizationFactory
Factory for the "minimal" optimizer. -
stdOptimizationFactory
Factory for the standard optimization sequnece.
-
-
Constructor Details
-
Optimize
public Optimize()
-
-
Method Details
-
optimize
-
optimize
Optimize based on all options -
noOptimizer
public static void noOptimizer()Set the global optimizer factory to one that does nothing. Applications probably wantbasicOptimizer()
-
basicOptimizer
public static void basicOptimizer()Set the global optimizer factory to one that only does property functions and scoped variables.- See Also:
-
setFactory
Globally set the factory for making optimizers -
getFactory
Get the global factory for making optimizers -
apply
-