Search in sources :

Example 1 with InlineVariablesRule

use of org.apache.hyracks.algebricks.rewriter.rules.InlineVariablesRule in project asterixdb by apache.

the class PigletRewriteRuleset method buildCondPushDownRuleCollection.

public static final List<IAlgebraicRewriteRule> buildCondPushDownRuleCollection() {
    List<IAlgebraicRewriteRule> condPushDown = new LinkedList<IAlgebraicRewriteRule>();
    condPushDown.add(new PushSelectDownRule());
    condPushDown.add(new InlineVariablesRule());
    condPushDown.add(new FactorRedundantGroupAndDecorVarsRule());
    condPushDown.add(new EliminateSubplanRule());
    return condPushDown;
}
Also used : IAlgebraicRewriteRule(org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule) InlineVariablesRule(org.apache.hyracks.algebricks.rewriter.rules.InlineVariablesRule) FactorRedundantGroupAndDecorVarsRule(org.apache.hyracks.algebricks.rewriter.rules.FactorRedundantGroupAndDecorVarsRule) LinkedList(java.util.LinkedList) PushSelectDownRule(org.apache.hyracks.algebricks.rewriter.rules.PushSelectDownRule) EliminateSubplanRule(org.apache.hyracks.algebricks.rewriter.rules.subplan.EliminateSubplanRule)

Example 2 with InlineVariablesRule

use of org.apache.hyracks.algebricks.rewriter.rules.InlineVariablesRule in project asterixdb by apache.

the class PigletRewriteRuleset method buildJoinInferenceRuleCollection.

public static final List<IAlgebraicRewriteRule> buildJoinInferenceRuleCollection() {
    List<IAlgebraicRewriteRule> joinInference = new LinkedList<IAlgebraicRewriteRule>();
    joinInference.add(new InlineVariablesRule());
    joinInference.add(new ComplexJoinInferenceRule());
    return joinInference;
}
Also used : ComplexJoinInferenceRule(org.apache.hyracks.algebricks.rewriter.rules.ComplexJoinInferenceRule) IAlgebraicRewriteRule(org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule) InlineVariablesRule(org.apache.hyracks.algebricks.rewriter.rules.InlineVariablesRule) LinkedList(java.util.LinkedList)

Aggregations

LinkedList (java.util.LinkedList)2 IAlgebraicRewriteRule (org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule)2 InlineVariablesRule (org.apache.hyracks.algebricks.rewriter.rules.InlineVariablesRule)2 ComplexJoinInferenceRule (org.apache.hyracks.algebricks.rewriter.rules.ComplexJoinInferenceRule)1 FactorRedundantGroupAndDecorVarsRule (org.apache.hyracks.algebricks.rewriter.rules.FactorRedundantGroupAndDecorVarsRule)1 PushSelectDownRule (org.apache.hyracks.algebricks.rewriter.rules.PushSelectDownRule)1 EliminateSubplanRule (org.apache.hyracks.algebricks.rewriter.rules.subplan.EliminateSubplanRule)1