| Package | Description |
|---|---|
| org.apache.calcite.rel.rules |
Provides a core set of planner rules.
|
| Modifier and Type | Method and Description |
|---|---|
private static AbstractMaterializedViewRule.NodeLineage |
AbstractMaterializedViewRule.generateSwapColumnTableReferencesLineage(RexBuilder rexBuilder,
RelMetadataQuery mq,
RelNode node,
com.google.common.collect.BiMap<RexTableInputRef.RelTableRef,RexTableInputRef.RelTableRef> tableMapping,
AbstractMaterializedViewRule.EquivalenceClasses ec,
List<RexNode> nodeExprs)
It swaps the column references and then the table references of the input
expressions using the equivalence classes and the table mapping.
|
private static AbstractMaterializedViewRule.NodeLineage |
AbstractMaterializedViewRule.generateSwapTableColumnReferencesLineage(RexBuilder rexBuilder,
RelMetadataQuery mq,
RelNode node,
com.google.common.collect.BiMap<RexTableInputRef.RelTableRef,RexTableInputRef.RelTableRef> tableMapping,
AbstractMaterializedViewRule.EquivalenceClasses ec,
List<RexNode> nodeExprs)
It swaps the table references and then the column references of the input
expressions using the table mapping and the equivalence classes.
|
protected static AbstractMaterializedViewRule.NodeLineage |
AbstractMaterializedViewRule.NodeLineage.of(Map<String,Integer> exprsLineage,
Map<String,Integer> exprsLineageLosslessCasts) |
| Modifier and Type | Method and Description |
|---|---|
private static RexNode |
AbstractMaterializedViewRule.replaceWithOriginalReferences(RexBuilder rexBuilder,
RelNode node,
AbstractMaterializedViewRule.NodeLineage nodeLineage,
RexNode exprToRewrite)
Given the input expression, it will replace (sub)expressions when possible
using the content of the mapping.
|
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.