org.eigenbase.test
Class RelOptTestBase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.eigenbase.test.SqlToRelTestBase
org.eigenbase.test.RelOptTestBase
- All Implemented Interfaces:
- Test
- Direct Known Subclasses:
- HepPlannerTest, RelOptRulesTest
abstract class RelOptTestBase
- extends SqlToRelTestBase
RelOptTestBase is an abstract base for tests which exercise a planner and/or
rules via DiffRepository
.
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/test/RelOptTestBase.java#10 $
- Author:
- John V. Sichi
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 |
RelOptTestBase
RelOptTestBase()
checkPlanning
protected void checkPlanning(RelOptRule rule,
String sql)
- Checks the plan for a SQL statement before/after executing a given rule.
- Parameters:
rule
- Planner rulesql
- SQL query
checkPlanning
protected void checkPlanning(HepProgram program,
String sql)
- Checks the plan for a SQL statement before/after executing a given
program.
- Parameters:
program
- Planner programsql
- SQL query
checkPlanning
protected void checkPlanning(RelOptPlanner planner,
String sql)
- Checks the plan for a SQL statement before/after executing a given
planner.
- Parameters:
planner
- Plannersql
- SQL query
checkPlanning
protected void checkPlanning(HepProgram preProgram,
RelOptRule rule,
String sql)
- Checks the plan for a SQL statement before/after executing a given rule,
with a pre-program to prepare the tree.
- Parameters:
preProgram
- Program to execute before comparing before staterule
- Planner rulesql
- SQL query
checkPlanning
protected void checkPlanning(HepProgram preProgram,
RelOptPlanner planner,
String sql)
- Checks the plan for a SQL statement before/after executing a given rule,
with a pre-program to prepare the tree.
- Parameters:
preProgram
- Program to execute before comparing before stateplanner
- Plannersql
- SQL query
createProgram
protected static HepProgram createProgram(RelOptRule... rules)
- Creates a program which is a sequence of rules.
- Parameters:
rules
- Sequence of rules
- Returns:
- Program