Package | Description |
---|---|
org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
Modifier and Type | Class and Description |
---|---|
private static class |
SubstitutionVisitor.AnyOperand
Operand to a
SubstitutionVisitor.UnifyRule that matches a relational expression of a
given type. |
private static class |
SubstitutionVisitor.InternalOperand
Operand to a
SubstitutionVisitor.UnifyRule that matches a relational expression of a
given type. |
private static class |
SubstitutionVisitor.QueryOperand
Operand that assigns a particular relational expression to a variable.
|
private static class |
SubstitutionVisitor.TargetOperand
Operand that checks that a relational expression matches the corresponding
relational expression that was passed to a
SubstitutionVisitor.QueryOperand . |
Modifier and Type | Field and Description |
---|---|
protected SubstitutionVisitor.Operand |
SubstitutionVisitor.UnifyRule.queryOperand |
protected SubstitutionVisitor.Operand |
SubstitutionVisitor.UnifyRule.targetOperand |
Modifier and Type | Field and Description |
---|---|
private java.util.List<SubstitutionVisitor.Operand> |
SubstitutionVisitor.InternalOperand.inputs |
Modifier and Type | Method and Description |
---|---|
protected static SubstitutionVisitor.Operand |
SubstitutionVisitor.AbstractUnifyRule.any(java.lang.Class<? extends MutableRel> clazz)
Creates an operand that doesn't check inputs.
|
protected static SubstitutionVisitor.Operand |
SubstitutionVisitor.AbstractUnifyRule.operand(java.lang.Class<? extends MutableRel> clazz,
SubstitutionVisitor.Operand... inputOperands)
Creates an operand with given inputs.
|
protected static SubstitutionVisitor.Operand |
SubstitutionVisitor.AbstractUnifyRule.query(int ordinal)
Creates an operand that matches a relational expression in the query.
|
protected static SubstitutionVisitor.Operand |
SubstitutionVisitor.AbstractUnifyRule.target(int ordinal)
Creates an operand that matches a relational expression in the
target.
|
Modifier and Type | Method and Description |
---|---|
protected static SubstitutionVisitor.Operand |
SubstitutionVisitor.AbstractUnifyRule.operand(java.lang.Class<? extends MutableRel> clazz,
SubstitutionVisitor.Operand... inputOperands)
Creates an operand with given inputs.
|
(package private) void |
SubstitutionVisitor.SlotCounter.visit(SubstitutionVisitor.Operand operand) |
Modifier and Type | Method and Description |
---|---|
private static boolean |
SubstitutionVisitor.InternalOperand.allMatch(SubstitutionVisitor visitor,
java.util.List<SubstitutionVisitor.Operand> operands,
java.util.List<MutableRel> rels) |
private static boolean |
SubstitutionVisitor.InternalOperand.allWeaker(SubstitutionVisitor visitor,
java.util.List<SubstitutionVisitor.Operand> operands,
java.util.List<MutableRel> rels) |
Constructor and Description |
---|
AbstractUnifyRule(SubstitutionVisitor.Operand queryOperand,
SubstitutionVisitor.Operand targetOperand,
int slotCount) |
UnifyRule(int slotCount,
SubstitutionVisitor.Operand queryOperand,
SubstitutionVisitor.Operand targetOperand) |
Constructor and Description |
---|
InternalOperand(java.lang.Class<? extends MutableRel> clazz,
java.util.List<SubstitutionVisitor.Operand> inputs) |
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.