Package org.apache.calcite.plan.volcano
Class VolcanoPlannerTraitTest
- java.lang.Object
-
- org.apache.calcite.plan.volcano.VolcanoPlannerTraitTest
-
public class VolcanoPlannerTraitTest extends java.lang.Object
Unit test for handling of traits byVolcanoPlanner
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
VolcanoPlannerTraitTest.AltTrait
Implementation ofRelTrait
for testing.private static class
VolcanoPlannerTraitTest.AltTraitConverter
Relational expression that converts betweenVolcanoPlannerTraitTest.AltTrait
values.private static class
VolcanoPlannerTraitTest.AltTraitConverterRule
Planner rule that converts betweenVolcanoPlannerTraitTest.AltTrait
s.private static class
VolcanoPlannerTraitTest.AltTraitDef
Definition ofVolcanoPlannerTraitTest.AltTrait
.(package private) static interface
VolcanoPlannerTraitTest.FooRel
A mix-in interface to extendRelNode
, for testing.private static class
VolcanoPlannerTraitTest.IterMergedRel
Relational expression with no inputs, that implements theVolcanoPlannerTraitTest.FooRel
mix-in interface.private static class
VolcanoPlannerTraitTest.IterSinglePhysMergeRule
Planner rule that converts anVolcanoPlannerTraitTest.IterSingleRel
on aVolcanoPlannerTraitTest.PhysToIteratorConverter
into aVolcanoPlannerTraitTest.IterMergedRel
.private static class
VolcanoPlannerTraitTest.IterSingleRel
Relational expression with one input, that implements theVolcanoPlannerTraitTest.FooRel
mix-in interface.private static class
VolcanoPlannerTraitTest.IterSingleRule
Planner rule to convert aVolcanoPlannerTraitTest.NoneSingleRel
to ENUMERABLE convention.private static class
VolcanoPlannerTraitTest.IterSingleRule2
Another planner rule to convert aVolcanoPlannerTraitTest.NoneSingleRel
to ENUMERABLE convention.private static class
VolcanoPlannerTraitTest.NoneLeafRel
A relational expression with zero inputs, of NONE convention.private static class
VolcanoPlannerTraitTest.NoneSingleRel
Relational expression with one input, of NONE convention.private static class
VolcanoPlannerTraitTest.PhysLeafRel
Relational expression with zero inputs, of PHYS convention.private static class
VolcanoPlannerTraitTest.PhysLeafRule
Relational expression with zero inputs, of the PHYS convention.private static class
VolcanoPlannerTraitTest.PhysToIteratorConverter
Planner rule that converts PHYS to ENUMERABLE convention.private static class
VolcanoPlannerTraitTest.PhysToIteratorConverterRule
Planner rule that converts from PHYS to ENUMERABLE convention.private static class
VolcanoPlannerTraitTest.TestLeafRel
A relational expression with zero inputs.private static class
VolcanoPlannerTraitTest.TestSingleRel
Relational expression with one input.
-
Field Summary
Fields Modifier and Type Field Description private static VolcanoPlannerTraitTest.AltTrait
ALT_EMPTY_TRAIT
Private alternate trait.private static VolcanoPlannerTraitTest.AltTrait
ALT_TRAIT
Private alternate trait.private static VolcanoPlannerTraitTest.AltTraitDef
ALT_TRAIT_DEF
Private trait definition for an alternate type of traits.private static VolcanoPlannerTraitTest.AltTrait
ALT_TRAIT2
Private alternate trait.private static int
altTraitOrdinal
Ordinal count for alternate traits (so they can implement equals() and avoid being canonized into the same trait).private static org.apache.calcite.plan.Convention
PHYS_CALLING_CONVENTION
Private calling convention representing a generic "physical" calling convention.
-
Constructor Summary
Constructors Constructor Description VolcanoPlannerTraitTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testDoubleConversion()
void
testRuleMatchAfterConversion()
void
testTraitPropagation()
-
-
-
Field Detail
-
PHYS_CALLING_CONVENTION
private static final org.apache.calcite.plan.Convention PHYS_CALLING_CONVENTION
Private calling convention representing a generic "physical" calling convention.
-
ALT_TRAIT_DEF
private static final VolcanoPlannerTraitTest.AltTraitDef ALT_TRAIT_DEF
Private trait definition for an alternate type of traits.
-
ALT_EMPTY_TRAIT
private static final VolcanoPlannerTraitTest.AltTrait ALT_EMPTY_TRAIT
Private alternate trait.
-
ALT_TRAIT
private static final VolcanoPlannerTraitTest.AltTrait ALT_TRAIT
Private alternate trait.
-
ALT_TRAIT2
private static final VolcanoPlannerTraitTest.AltTrait ALT_TRAIT2
Private alternate trait.
-
altTraitOrdinal
private static int altTraitOrdinal
Ordinal count for alternate traits (so they can implement equals() and avoid being canonized into the same trait).
-
-