org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRulepublic class EliminateSubplanForSingleItemsRule extends Object implements org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule
Before
%PARENT_PLAN
SUBPLAN{
AGGREGATE($v2, sequence(%expression($v1)) )
UNNEST($v1, iterate($v0) )
NESTEDTUPLESOURCE
}
%CHILD_PLAN
Where |$v0| == 1
After
%PARENT_PLAN
ASSIGN($v2, %expression($v0) )
%CHILD_PLAN
| Constructor | Description |
|---|---|
EliminateSubplanForSingleItemsRule() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
rewritePost(org.apache.commons.lang3.mutable.Mutable<org.apache.hyracks.algebricks.core.algebra.base.ILogicalOperator> opRef,
org.apache.hyracks.algebricks.core.algebra.base.IOptimizationContext context) |
|
boolean |
rewritePre(org.apache.commons.lang3.mutable.Mutable<org.apache.hyracks.algebricks.core.algebra.base.ILogicalOperator> opRef,
org.apache.hyracks.algebricks.core.algebra.base.IOptimizationContext context) |
public boolean rewritePost(org.apache.commons.lang3.mutable.Mutable<org.apache.hyracks.algebricks.core.algebra.base.ILogicalOperator> opRef,
org.apache.hyracks.algebricks.core.algebra.base.IOptimizationContext context)
rewritePost in interface org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRulepublic boolean rewritePre(org.apache.commons.lang3.mutable.Mutable<org.apache.hyracks.algebricks.core.algebra.base.ILogicalOperator> opRef,
org.apache.hyracks.algebricks.core.algebra.base.IOptimizationContext context)
throws org.apache.hyracks.algebricks.common.exceptions.AlgebricksException
rewritePre in interface org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRuleorg.apache.hyracks.algebricks.common.exceptions.AlgebricksExceptionCopyright © 2019 Apache Software Foundation. All rights reserved.