public abstract class HivePointLookupOptimizerRule
extends org.apache.calcite.plan.RelOptRule
Modifier and Type | Class and Description |
---|---|
static class |
HivePointLookupOptimizerRule.FilterCondition
This optimization will take a Filter or expression, and if its predicate contains
an OR operator whose children are constant equality expressions, it will try
to generate an IN clause (which is more efficient).
|
static class |
HivePointLookupOptimizerRule.JoinCondition
This optimization will take a Join or expression, and if its join condition contains
an OR operator whose children are constant equality expressions, it will try
to generate an IN clause (which is more efficient).
|
protected static class |
HivePointLookupOptimizerRule.RexMergeInClause
Merge IN clauses, when possible.
|
protected static class |
HivePointLookupOptimizerRule.RexTransformIntoInClause
Transforms OR clauses into IN clauses, when possible.
|
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
LOG |
protected int |
minNumORClauses |
Modifier | Constructor and Description |
---|---|
protected |
HivePointLookupOptimizerRule(org.apache.calcite.plan.RelOptRuleOperand operand,
int minNumORClauses) |
Modifier and Type | Method and Description |
---|---|
void |
analyzeCondition(org.apache.calcite.plan.RelOptRuleCall call,
org.apache.calcite.rex.RexBuilder rexBuilder,
org.apache.calcite.rel.AbstractRelNode node,
org.apache.calcite.rex.RexNode condition) |
protected abstract org.apache.calcite.rel.RelNode |
copyNode(org.apache.calcite.rel.AbstractRelNode node,
org.apache.calcite.rex.RexNode newCondition) |
protected static final org.apache.commons.logging.Log LOG
protected final int minNumORClauses
protected HivePointLookupOptimizerRule(org.apache.calcite.plan.RelOptRuleOperand operand, int minNumORClauses)
protected abstract org.apache.calcite.rel.RelNode copyNode(org.apache.calcite.rel.AbstractRelNode node, org.apache.calcite.rex.RexNode newCondition)
public void analyzeCondition(org.apache.calcite.plan.RelOptRuleCall call, org.apache.calcite.rex.RexBuilder rexBuilder, org.apache.calcite.rel.AbstractRelNode node, org.apache.calcite.rex.RexNode condition)
Copyright © 2022 The Apache Software Foundation. All rights reserved.