org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule
public class RemoveUnusedSortDistinctNodesRule extends Object implements org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule
Before plan__parent ASSIGN( $v1 : sort_distinct_nodes_asc_or_atomics( $v0 ) ) plan__child Where $v0 is a variable defined in plan__child. After if ( $v0 is unique nodes && $v0 is in document order ) plan__parent ASSIGN( $v1 : $v0 ) plan__child if ( $v0 is NOT unique nodes && $v0 is in document order ) plan__parent ASSIGN( $v1 : distinct_nodes_or_atomics( $v0 ) ) plan__child if ( $v0 is unique nodes && $v0 is NOT in document order ) plan__parent ASSIGN( $v1 : sort_nodes_asc( $v0 ) ) plan__child if ( $v0 is NOT unique nodes && $v0 is NOT in document order ) plan__parent ASSIGN( $v1 : sort_distinct_nodes_asc_or_atomics( $v0 ) ) plan__child
Constructor | Description |
---|---|
RemoveUnusedSortDistinctNodesRule() |
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 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.IAlgebraicRewriteRule
org.apache.hyracks.algebricks.common.exceptions.AlgebricksException
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.IAlgebraicRewriteRule
Copyright © 2019 Apache Software Foundation. All rights reserved.