Search in sources :

Example 1 with IntroduceAggregateCombinerRule

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

the class RuleCollections method buildConsolidationRuleCollection.

public static final List<IAlgebraicRewriteRule> buildConsolidationRuleCollection() {
    List<IAlgebraicRewriteRule> consolidation = new LinkedList<>();
    consolidation.add(new ConsolidateSelectsRule());
    consolidation.add(new ConsolidateAssignsRule());
    consolidation.add(new InlineAssignIntoAggregateRule());
    consolidation.add(new AsterixIntroduceGroupByCombinerRule());
    consolidation.add(new IntroduceAggregateCombinerRule());
    consolidation.add(new CountVarToCountOneRule());
    consolidation.add(new RemoveUnusedAssignAndAggregateRule());
    consolidation.add(new RemoveRedundantGroupByDecorVarsRule());
    //PushUnnestDownUnion => RemoveRedundantListifyRule cause these rules are correlated
    consolidation.add(new PushUnnestDownThroughUnionRule());
    consolidation.add(new RemoveRedundantListifyRule());
    return consolidation;
}
Also used : RemoveRedundantListifyRule(org.apache.asterix.optimizer.rules.RemoveRedundantListifyRule) ConsolidateAssignsRule(org.apache.hyracks.algebricks.rewriter.rules.ConsolidateAssignsRule) InlineAssignIntoAggregateRule(org.apache.hyracks.algebricks.rewriter.rules.InlineAssignIntoAggregateRule) RemoveRedundantGroupByDecorVarsRule(org.apache.hyracks.algebricks.rewriter.rules.RemoveRedundantGroupByDecorVarsRule) LinkedList(java.util.LinkedList) ConsolidateSelectsRule(org.apache.hyracks.algebricks.rewriter.rules.ConsolidateSelectsRule) PushUnnestDownThroughUnionRule(org.apache.hyracks.algebricks.rewriter.rules.PushUnnestDownThroughUnionRule) IAlgebraicRewriteRule(org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule) AsterixIntroduceGroupByCombinerRule(org.apache.asterix.optimizer.rules.AsterixIntroduceGroupByCombinerRule) RemoveUnusedAssignAndAggregateRule(org.apache.hyracks.algebricks.rewriter.rules.RemoveUnusedAssignAndAggregateRule) CountVarToCountOneRule(org.apache.asterix.optimizer.rules.CountVarToCountOneRule) IntroduceAggregateCombinerRule(org.apache.hyracks.algebricks.rewriter.rules.IntroduceAggregateCombinerRule)

Aggregations

LinkedList (java.util.LinkedList)1 AsterixIntroduceGroupByCombinerRule (org.apache.asterix.optimizer.rules.AsterixIntroduceGroupByCombinerRule)1 CountVarToCountOneRule (org.apache.asterix.optimizer.rules.CountVarToCountOneRule)1 RemoveRedundantListifyRule (org.apache.asterix.optimizer.rules.RemoveRedundantListifyRule)1 IAlgebraicRewriteRule (org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule)1 ConsolidateAssignsRule (org.apache.hyracks.algebricks.rewriter.rules.ConsolidateAssignsRule)1 ConsolidateSelectsRule (org.apache.hyracks.algebricks.rewriter.rules.ConsolidateSelectsRule)1 InlineAssignIntoAggregateRule (org.apache.hyracks.algebricks.rewriter.rules.InlineAssignIntoAggregateRule)1 IntroduceAggregateCombinerRule (org.apache.hyracks.algebricks.rewriter.rules.IntroduceAggregateCombinerRule)1 PushUnnestDownThroughUnionRule (org.apache.hyracks.algebricks.rewriter.rules.PushUnnestDownThroughUnionRule)1 RemoveRedundantGroupByDecorVarsRule (org.apache.hyracks.algebricks.rewriter.rules.RemoveRedundantGroupByDecorVarsRule)1 RemoveUnusedAssignAndAggregateRule (org.apache.hyracks.algebricks.rewriter.rules.RemoveUnusedAssignAndAggregateRule)1