Package org.apache.calcite.plan
Class SubstitutionVisitor.InternalOperand
- java.lang.Object
-
- org.apache.calcite.plan.SubstitutionVisitor.Operand
-
- org.apache.calcite.plan.SubstitutionVisitor.InternalOperand
-
- Enclosing class:
- SubstitutionVisitor
private static class SubstitutionVisitor.InternalOperand extends SubstitutionVisitor.Operand
Operand to aSubstitutionVisitor.UnifyRule
that matches a relational expression of a given type. It has zero or more child operands.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<SubstitutionVisitor.Operand>
inputs
-
Fields inherited from class org.apache.calcite.plan.SubstitutionVisitor.Operand
clazz
-
-
Constructor Summary
Constructors Constructor Description InternalOperand(java.lang.Class<? extends MutableRel> clazz, java.util.List<SubstitutionVisitor.Operand> inputs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static boolean
allMatch(SubstitutionVisitor visitor, java.util.List<SubstitutionVisitor.Operand> operands, java.util.List<MutableRel> rels)
private static boolean
allWeaker(SubstitutionVisitor visitor, java.util.List<SubstitutionVisitor.Operand> operands, java.util.List<MutableRel> rels)
boolean
isWeaker(SubstitutionVisitor visitor, MutableRel rel)
boolean
matches(SubstitutionVisitor visitor, MutableRel rel)
-
-
-
Field Detail
-
inputs
private final java.util.List<SubstitutionVisitor.Operand> inputs
-
-
Constructor Detail
-
InternalOperand
InternalOperand(java.lang.Class<? extends MutableRel> clazz, java.util.List<SubstitutionVisitor.Operand> inputs)
-
-
Method Detail
-
matches
public boolean matches(SubstitutionVisitor visitor, MutableRel rel)
- Specified by:
matches
in classSubstitutionVisitor.Operand
-
isWeaker
public boolean isWeaker(SubstitutionVisitor visitor, MutableRel rel)
- Overrides:
isWeaker
in classSubstitutionVisitor.Operand
-
allMatch
private static boolean allMatch(SubstitutionVisitor visitor, java.util.List<SubstitutionVisitor.Operand> operands, java.util.List<MutableRel> rels)
-
allWeaker
private static boolean allWeaker(SubstitutionVisitor visitor, java.util.List<SubstitutionVisitor.Operand> operands, java.util.List<MutableRel> rels)
-
-