Package org.apache.calcite.plan
Class SubstitutionVisitor.AbstractUnifyRule
- java.lang.Object
-
- org.apache.calcite.plan.SubstitutionVisitor.UnifyRule
-
- org.apache.calcite.plan.SubstitutionVisitor.AbstractUnifyRule
-
- Direct Known Subclasses:
MaterializedViewSubstitutionVisitor.FilterToFilterUnifyRule1
,MaterializedViewSubstitutionVisitor.FilterToProjectUnifyRule1
,MaterializedViewSubstitutionVisitor.ProjectToProjectUnifyRule1
,SubstitutionVisitor.AggregateOnProjectToAggregateUnifyRule
,SubstitutionVisitor.AggregateToAggregateUnifyRule
,SubstitutionVisitor.FilterToFilterUnifyRule
,SubstitutionVisitor.FilterToProjectUnifyRule
,SubstitutionVisitor.ProjectToFilterUnifyRule
,SubstitutionVisitor.ProjectToProjectUnifyRule
,SubstitutionVisitor.ScanToProjectUnifyRule
,SubstitutionVisitor.TrivialRule
- Enclosing class:
- SubstitutionVisitor
protected abstract static class SubstitutionVisitor.AbstractUnifyRule extends SubstitutionVisitor.UnifyRule
Abstract base class for implementingSubstitutionVisitor.UnifyRule
.
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.plan.SubstitutionVisitor.UnifyRule
queryOperand, slotCount, targetOperand
-
-
Constructor Summary
Constructors Constructor Description AbstractUnifyRule(SubstitutionVisitor.Operand queryOperand, SubstitutionVisitor.Operand targetOperand, int slotCount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static SubstitutionVisitor.Operand
any(java.lang.Class<? extends MutableRel> clazz)
Creates an operand that doesn't check inputs.protected boolean
isValid()
protected static SubstitutionVisitor.Operand
operand(java.lang.Class<? extends MutableRel> clazz, SubstitutionVisitor.Operand... inputOperands)
Creates an operand with given inputs.protected static SubstitutionVisitor.Operand
query(int ordinal)
Creates an operand that matches a relational expression in the query.protected static SubstitutionVisitor.Operand
target(int ordinal)
Creates an operand that matches a relational expression in the target.-
Methods inherited from class org.apache.calcite.plan.SubstitutionVisitor.UnifyRule
apply, copy, match
-
-
-
-
Constructor Detail
-
AbstractUnifyRule
public AbstractUnifyRule(SubstitutionVisitor.Operand queryOperand, SubstitutionVisitor.Operand targetOperand, int slotCount)
-
-
Method Detail
-
isValid
protected boolean isValid()
-
operand
protected static SubstitutionVisitor.Operand operand(java.lang.Class<? extends MutableRel> clazz, SubstitutionVisitor.Operand... inputOperands)
Creates an operand with given inputs.
-
any
protected static SubstitutionVisitor.Operand any(java.lang.Class<? extends MutableRel> clazz)
Creates an operand that doesn't check inputs.
-
query
protected static SubstitutionVisitor.Operand query(int ordinal)
Creates an operand that matches a relational expression in the query.
-
target
protected static SubstitutionVisitor.Operand target(int ordinal)
Creates an operand that matches a relational expression in the target.
-
-