Package org.apache.calcite.plan.volcano
Class ComboRuleTest.IntermediateNode
- java.lang.Object
-
- org.apache.calcite.rel.AbstractRelNode
-
- org.apache.calcite.rel.SingleRel
-
- org.apache.calcite.plan.volcano.PlannerTests.TestSingleRel
-
- org.apache.calcite.plan.volcano.ComboRuleTest.IntermediateNode
-
- All Implemented Interfaces:
java.lang.Cloneable
,org.apache.calcite.plan.RelOptNode
,org.apache.calcite.rel.RelNode
- Enclosing class:
- ComboRuleTest
private static class ComboRuleTest.IntermediateNode extends PlannerTests.TestSingleRel
Intermediate node, the cost decreases as it is pushed up the tree (more inputs it has, cheaper it gets).
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
nodesBelowCount
-
Constructor Summary
Constructors Constructor Description IntermediateNode(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.rel.RelNode input, int nodesBelowCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.calcite.plan.RelOptCost
computeSelfCost(org.apache.calcite.plan.RelOptPlanner planner, org.apache.calcite.rel.metadata.RelMetadataQuery mq)
org.apache.calcite.rel.RelNode
copy(org.apache.calcite.plan.RelTraitSet traitSet, java.util.List<org.apache.calcite.rel.RelNode> inputs)
-
Methods inherited from class org.apache.calcite.plan.volcano.PlannerTests.TestSingleRel
deriveRowType
-
Methods inherited from class org.apache.calcite.rel.SingleRel
childrenAccept, estimateRowCount, explainTerms, getInput, getInputs, replaceInput
-
Methods inherited from class org.apache.calcite.rel.AbstractRelNode
accept, accept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, explain, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, sole, toString
-
-
-
-
Method Detail
-
computeSelfCost
public org.apache.calcite.plan.RelOptCost computeSelfCost(org.apache.calcite.plan.RelOptPlanner planner, org.apache.calcite.rel.metadata.RelMetadataQuery mq)
- Specified by:
computeSelfCost
in interfaceorg.apache.calcite.rel.RelNode
- Overrides:
computeSelfCost
in classPlannerTests.TestSingleRel
-
copy
public org.apache.calcite.rel.RelNode copy(org.apache.calcite.plan.RelTraitSet traitSet, java.util.List<org.apache.calcite.rel.RelNode> inputs)
- Specified by:
copy
in interfaceorg.apache.calcite.rel.RelNode
- Overrides:
copy
in classorg.apache.calcite.rel.AbstractRelNode
-
-