public class MaterializedViewSubstitutionVisitor extends SubstitutionVisitor
SubstitutionVisitor
.
TODO: Remove when we upgrade to Calcite version using builders.SubstitutionVisitor.AbstractUnifyRule, SubstitutionVisitor.FilterOnProjectRule, SubstitutionVisitor.MatchFailed, SubstitutionVisitor.MutableAggregate, SubstitutionVisitor.MutableFilter, SubstitutionVisitor.MutableLeafRel, SubstitutionVisitor.MutableProject, SubstitutionVisitor.MutableRel, SubstitutionVisitor.MutableRelDumper, SubstitutionVisitor.MutableRels, SubstitutionVisitor.MutableScan, SubstitutionVisitor.MutableSetOp, SubstitutionVisitor.MutableSingleRel, SubstitutionVisitor.MutableSort, SubstitutionVisitor.MutableUnion, SubstitutionVisitor.MutableValues, SubstitutionVisitor.Operand, SubstitutionVisitor.UnifyResult, SubstitutionVisitor.UnifyRule, SubstitutionVisitor.UnifyRuleCall
DEFAULT_RULES, relBuilder, slots
Constructor and Description |
---|
MaterializedViewSubstitutionVisitor(org.apache.calcite.rel.RelNode target_,
org.apache.calcite.rel.RelNode query_) |
MaterializedViewSubstitutionVisitor(org.apache.calcite.rel.RelNode target_,
org.apache.calcite.rel.RelNode query_,
org.apache.calcite.tools.RelBuilderFactory relBuilderFactory) |
Modifier and Type | Method and Description |
---|---|
List<org.apache.calcite.rel.RelNode> |
go(org.apache.calcite.rel.RelNode replacement_)
Returns a list of all possible rels that result from substituting the
matched RelNode with the replacement RelNode within the query.
|
getRexShuttle, getRollup, go0, isWeaker, mayBeSatisfiable, permute, splitFilter, unifyAggregates
public MaterializedViewSubstitutionVisitor(org.apache.calcite.rel.RelNode target_, org.apache.calcite.rel.RelNode query_)
public MaterializedViewSubstitutionVisitor(org.apache.calcite.rel.RelNode target_, org.apache.calcite.rel.RelNode query_, org.apache.calcite.tools.RelBuilderFactory relBuilderFactory)
public List<org.apache.calcite.rel.RelNode> go(org.apache.calcite.rel.RelNode replacement_)
SubstitutionVisitor
For example, the substitution result of A join B, while A and B are both a qualified match for replacement R, is R join B, R join R, A join R.
go
in class SubstitutionVisitor
Copyright © 2021 The Apache Software Foundation. All rights reserved.