Search in sources :

Example 1 with InferTypesRule

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

the class RuleCollections method buildTypeInferenceRuleCollection.

public static final List<IAlgebraicRewriteRule> buildTypeInferenceRuleCollection() {
    List<IAlgebraicRewriteRule> typeInfer = new LinkedList<>();
    typeInfer.add(new InlineUnnestFunctionRule());
    typeInfer.add(new InferTypesRule());
    typeInfer.add(new CheckFilterExpressionTypeRule());
    return typeInfer;
}
Also used : InlineUnnestFunctionRule(org.apache.asterix.optimizer.rules.InlineUnnestFunctionRule) InferTypesRule(org.apache.hyracks.algebricks.rewriter.rules.InferTypesRule) IAlgebraicRewriteRule(org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule) CheckFilterExpressionTypeRule(org.apache.asterix.optimizer.rules.CheckFilterExpressionTypeRule) LinkedList(java.util.LinkedList)

Example 2 with InferTypesRule

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

the class RuleCollections method buildFuzzyJoinRuleCollection.

public static final List<IAlgebraicRewriteRule> buildFuzzyJoinRuleCollection() {
    List<IAlgebraicRewriteRule> fuzzy = new LinkedList<>();
    // fuzzy.add(new FuzzyJoinRule()); -- The non-indexed fuzzy join will be temporarily disabled. It should be enabled some time in the near future.
    fuzzy.add(new InferTypesRule());
    return fuzzy;
}
Also used : InferTypesRule(org.apache.hyracks.algebricks.rewriter.rules.InferTypesRule) IAlgebraicRewriteRule(org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule) LinkedList(java.util.LinkedList)

Example 3 with InferTypesRule

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

the class PigletRewriteRuleset method buildTypeInferenceRuleCollection.

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

Aggregations

LinkedList (java.util.LinkedList)3 IAlgebraicRewriteRule (org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule)3 InferTypesRule (org.apache.hyracks.algebricks.rewriter.rules.InferTypesRule)3 CheckFilterExpressionTypeRule (org.apache.asterix.optimizer.rules.CheckFilterExpressionTypeRule)1 InlineUnnestFunctionRule (org.apache.asterix.optimizer.rules.InlineUnnestFunctionRule)1