This project has retired. For details please refer to its
Attic page .
AbstractUsedVariablesProcessingRule (VXQuery 0.6 API)
JavaScript is disabled on your browser.
JavaScript is disabled on your browser.
java.lang.Object
org.apache.vxquery.compiler.rewriter.rules.AbstractUsedVariablesProcessingRule
All Implemented Interfaces:
org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule
Direct Known Subclasses:
ConsolidateUnnestsRule
, ConvertAssignToUnnestRule
, PushChildIntoDataScanRule
, RemoveUnusedUnnestIterateRule
public abstract class AbstractUsedVariablesProcessingRule
extends Object
implements org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule
The AbstractUsedVariablesProcessingRule provides a frame work to track used
variables to assist in some rewrite rules that must track used variables in
the above plan.
Author:
prestonc
Field Summary
Fields
Modifier and Type
Field
Description
protected boolean
hasRun
protected List <org.apache.hyracks.algebricks.core.algebra.base.LogicalVariable>
usedVariables
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods
Modifier and Type
Method
Description
protected abstract boolean
processOperator (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
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)
protected boolean
rewritePreTrackingUsedVariables (org.apache.commons.lang3.mutable.Mutable<org.apache.hyracks.algebricks.core.algebra.base.ILogicalOperator> opRef,
org.apache.hyracks.algebricks.core.algebra.base.IOptimizationContext context)
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Field Detail
hasRun
protected boolean hasRun
Method Detail
rewritePreTrackingUsedVariables
protected boolean rewritePreTrackingUsedVariables(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
Throws:
org.apache.hyracks.algebricks.common.exceptions.AlgebricksException
processOperator
protected abstract boolean processOperator(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
Throws:
org.apache.hyracks.algebricks.common.exceptions.AlgebricksException
JavaScript is disabled on your browser.
Copyright © 2019 Apache Software Foundation . All rights reserved.