Search in sources :

Example 1 with ExtractCommonOperatorsRule

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

the class RuleCollections method prepareForJobGenRuleCollection.

public static final List<IAlgebraicRewriteRule> prepareForJobGenRuleCollection() {
    List<IAlgebraicRewriteRule> prepareForJobGenRewrites = new LinkedList<>();
    prepareForJobGenRewrites.add(new IsolateHyracksOperatorsRule(HeuristicOptimizer.hyraxOperatorsBelowWhichJobGenIsDisabled));
    prepareForJobGenRewrites.add(new ExtractCommonOperatorsRule());
    // Re-infer all types, so that, e.g., the effect of not-is-null is
    // propagated.
    prepareForJobGenRewrites.add(new ReinferAllTypesRule());
    prepareForJobGenRewrites.add(new PushGroupByIntoSortRule());
    prepareForJobGenRewrites.add(new SetExecutionModeRule());
    prepareForJobGenRewrites.add(new SweepIllegalNonfunctionalFunctions());
    return prepareForJobGenRewrites;
}
Also used : IsolateHyracksOperatorsRule(org.apache.hyracks.algebricks.rewriter.rules.IsolateHyracksOperatorsRule) SetExecutionModeRule(org.apache.hyracks.algebricks.rewriter.rules.SetExecutionModeRule) IAlgebraicRewriteRule(org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule) ExtractCommonOperatorsRule(org.apache.hyracks.algebricks.rewriter.rules.ExtractCommonOperatorsRule) PushGroupByIntoSortRule(org.apache.hyracks.algebricks.rewriter.rules.PushGroupByIntoSortRule) ReinferAllTypesRule(org.apache.hyracks.algebricks.rewriter.rules.ReinferAllTypesRule) SweepIllegalNonfunctionalFunctions(org.apache.asterix.optimizer.rules.SweepIllegalNonfunctionalFunctions) LinkedList(java.util.LinkedList)

Example 2 with ExtractCommonOperatorsRule

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

the class PigletRewriteRuleset method prepareForJobGenRuleCollection.

public static final List<IAlgebraicRewriteRule> prepareForJobGenRuleCollection() {
    List<IAlgebraicRewriteRule> prepareForJobGenRewrites = new LinkedList<IAlgebraicRewriteRule>();
    prepareForJobGenRewrites.add(new IsolateHyracksOperatorsRule(HeuristicOptimizer.hyraxOperatorsBelowWhichJobGenIsDisabled));
    prepareForJobGenRewrites.add(new ExtractCommonOperatorsRule());
    // Re-infer all types, so that, e.g., the effect of not-is-null is
    // propagated.
    prepareForJobGenRewrites.add(new PushProjectIntoDataSourceScanRule());
    prepareForJobGenRewrites.add(new ReinferAllTypesRule());
    return prepareForJobGenRewrites;
}
Also used : IsolateHyracksOperatorsRule(org.apache.hyracks.algebricks.rewriter.rules.IsolateHyracksOperatorsRule) IAlgebraicRewriteRule(org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule) ExtractCommonOperatorsRule(org.apache.hyracks.algebricks.rewriter.rules.ExtractCommonOperatorsRule) PushProjectIntoDataSourceScanRule(org.apache.hyracks.algebricks.rewriter.rules.PushProjectIntoDataSourceScanRule) ReinferAllTypesRule(org.apache.hyracks.algebricks.rewriter.rules.ReinferAllTypesRule) LinkedList(java.util.LinkedList)

Aggregations

LinkedList (java.util.LinkedList)2 IAlgebraicRewriteRule (org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule)2 ExtractCommonOperatorsRule (org.apache.hyracks.algebricks.rewriter.rules.ExtractCommonOperatorsRule)2 IsolateHyracksOperatorsRule (org.apache.hyracks.algebricks.rewriter.rules.IsolateHyracksOperatorsRule)2 ReinferAllTypesRule (org.apache.hyracks.algebricks.rewriter.rules.ReinferAllTypesRule)2 SweepIllegalNonfunctionalFunctions (org.apache.asterix.optimizer.rules.SweepIllegalNonfunctionalFunctions)1 PushGroupByIntoSortRule (org.apache.hyracks.algebricks.rewriter.rules.PushGroupByIntoSortRule)1 PushProjectIntoDataSourceScanRule (org.apache.hyracks.algebricks.rewriter.rules.PushProjectIntoDataSourceScanRule)1 SetExecutionModeRule (org.apache.hyracks.algebricks.rewriter.rules.SetExecutionModeRule)1