public class ASTSparql11SubqueryOptimizer extends Object implements IASTOptimizer
SubqueryRoot
s into named subqueries when appropriate. This
includes the following cases:
IAggregate
functions.SubqueryRoot.isRunOnce()
is
true
.
Constructor and Description |
---|
ASTSparql11SubqueryOptimizer() |
Modifier and Type | Method and Description |
---|---|
static boolean |
needsLifting(SubqueryRoot subqueryRoot)
Returns true iff the subquery needs to be lifted into a named subquery include.
|
QueryNodeWithBindingSet |
optimize(AST2BOpContext context,
QueryNodeWithBindingSet input)
Optimize the AST.
|
public QueryNodeWithBindingSet optimize(AST2BOpContext context, QueryNodeWithBindingSet input)
IASTOptimizer
optimize
in interface IASTOptimizer
context
- The evaluation context.input
- The input to the optimizer, consisting of a queryNode and
input binding set.public static boolean needsLifting(SubqueryRoot subqueryRoot)
subqueryRoot
- Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.