|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.eigenbase.relopt.volcano.VolcanoPlannerTest
public class VolcanoPlannerTest
A VolcanoPlannerTest
is a unit-test for the optimizer
.
Nested Class Summary | |
---|---|
private static class |
VolcanoPlannerTest.GoodRemoveSingleRule
|
private static class |
VolcanoPlannerTest.GoodSingleRule
|
private static class |
VolcanoPlannerTest.NoneLeafRel
|
private static class |
VolcanoPlannerTest.NoneSingleRel
|
private static class |
VolcanoPlannerTest.PhysLeafRel
|
private static class |
VolcanoPlannerTest.PhysLeafRule
|
private static class |
VolcanoPlannerTest.PhysProjectRule
|
private static class |
VolcanoPlannerTest.PhysSingleRel
|
(package private) class |
VolcanoPlannerTest.PhysToIteratorConverter
|
private static class |
VolcanoPlannerTest.ReformedRemoveSingleRule
|
private static class |
VolcanoPlannerTest.ReformedSingleRule
|
private static class |
VolcanoPlannerTest.TestEnvironment
|
private static class |
VolcanoPlannerTest.TestLeafRel
|
private static class |
VolcanoPlannerTest.TestListener
|
private static class |
VolcanoPlannerTest.TestSingleRel
|
Field Summary | |
---|---|
private static CallingConvention |
PHYS_CALLING_CONVENTION
Private calling convention representing a physical implementation. |
Constructor Summary | |
---|---|
VolcanoPlannerTest(String name)
|
Method Summary | |
---|---|
private void |
checkEvent(List<RelOptListener.RelEvent> eventList,
int iEvent,
Class expectedEventClass,
RelNode expectedRel,
Class<? extends RelOptRule> expectedRuleClass)
|
(package private) static RelOptCluster |
newCluster(VolcanoPlanner planner)
|
private void |
removeTrivialProject(boolean useRule)
|
void |
testListener()
Tests whether planner correctly notifies listeners of events. |
void |
testRemoveSingleGood()
This always worked (in contrast to testRemoveSingleReformed) because it uses a completely-physical pattern (requiring GoodSingleRule to fire first). |
void |
testRemoveSingleReformed()
Previously, this didn't work because ReformedRemoveSingleRule uses a pattern which spans calling conventions. |
void |
testTransformLeaf()
Tests transformation of a leaf from NONE to PHYS. |
void |
testTransformSingleGood()
Tests transformation of a single+leaf from NONE to PHYS. |
void |
testTransformSingleReformed()
Tests transformation of a single+leaf from NONE to PHYS. |
void |
testWithoutRemoveTrivialProject()
|
void |
testWithRemoveTrivialProject()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final CallingConvention PHYS_CALLING_CONVENTION
Constructor Detail |
---|
public VolcanoPlannerTest(String name)
Method Detail |
---|
static RelOptCluster newCluster(VolcanoPlanner planner)
public void testTransformLeaf()
public void testTransformSingleGood()
public void testTransformSingleReformed()
private void removeTrivialProject(boolean useRule)
public void testWithRemoveTrivialProject()
public void testWithoutRemoveTrivialProject()
public void testRemoveSingleReformed()
public void testRemoveSingleGood()
public void testListener()
private void checkEvent(List<RelOptListener.RelEvent> eventList, int iEvent, Class expectedEventClass, RelNode expectedRel, Class<? extends RelOptRule> expectedRuleClass)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |