T - Should be a class that wraps the right input of the top right outer join: the union branch
which represents the plan which produces the delta records since the last view rebuild.public abstract class HiveAggregateIncrementalRewritingRuleBase<T extends HiveAggregateIncrementalRewritingRuleBase.IncrementalComputePlan>
extends org.apache.calcite.plan.RelOptRule
HiveAggregateInsertIncrementalRewritingRule,
HiveAggregateInsertDeleteIncrementalRewritingRule| Modifier and Type | Class and Description |
|---|---|
protected static class |
HiveAggregateIncrementalRewritingRuleBase.IncrementalComputePlan |
| Modifier | Constructor and Description |
|---|---|
protected |
HiveAggregateIncrementalRewritingRuleBase(org.apache.calcite.plan.RelOptRuleOperand operand,
org.apache.calcite.tools.RelBuilderFactory relBuilderFactory,
String description,
int aggregateIndex) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.calcite.rex.RexNode |
createAggregateNode(org.apache.calcite.sql.SqlAggFunction aggCall,
org.apache.calcite.rex.RexNode leftRef,
org.apache.calcite.rex.RexNode rightRef,
org.apache.calcite.rex.RexBuilder rexBuilder) |
protected abstract org.apache.calcite.rex.RexNode |
createFilterCondition(T rightInput,
org.apache.calcite.rex.RexNode flagNode,
List<org.apache.calcite.rex.RexNode> projExprs,
org.apache.calcite.tools.RelBuilder relBuilder) |
protected abstract T |
createJoinRightInput(org.apache.calcite.plan.RelOptRuleCall call) |
void |
onMatch(org.apache.calcite.plan.RelOptRuleCall call) |
any, convert, convert, convertList, convertOperand, convertOperand, equals, equals, getOperand, getOperands, getOutConvention, getOutTrait, hashCode, matches, none, operand, operand, operand, operand, operand, operandJ, operandJ, some, toString, unorderedprotected HiveAggregateIncrementalRewritingRuleBase(org.apache.calcite.plan.RelOptRuleOperand operand,
org.apache.calcite.tools.RelBuilderFactory relBuilderFactory,
String description,
int aggregateIndex)
public void onMatch(org.apache.calcite.plan.RelOptRuleCall call)
onMatch in class org.apache.calcite.plan.RelOptRuleprotected abstract T createJoinRightInput(org.apache.calcite.plan.RelOptRuleCall call)
protected org.apache.calcite.rex.RexNode createAggregateNode(org.apache.calcite.sql.SqlAggFunction aggCall,
org.apache.calcite.rex.RexNode leftRef,
org.apache.calcite.rex.RexNode rightRef,
org.apache.calcite.rex.RexBuilder rexBuilder)
Copyright © 2024 The Apache Software Foundation. All rights reserved.