public class ASTEmptyGroupOptimizer extends Object implements IASTOptimizer
{ { ... } } => { ... }and for non-graph groups:
{ ... {} } => { ... }This is also done when the child is a UNION.
{ UNION {...} } => UNION {...}Or
{ GRAPH ?g {...} } => GRAPH ?g {...}Note: An empty
{}
matches a single empty solution. Since we
always push in an empty solution and the join of anything with an empty
solution is that source solution, this is the same as not running the group,
so we just eliminate the empty group.Constructor and Description |
---|
ASTEmptyGroupOptimizer() |
Modifier and Type | Method and Description |
---|---|
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.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.