|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.test.SqlToRelTestBase.TesterImpl
public static class SqlToRelTestBase.TesterImpl
Default implementation of SqlToRelTestBase.Tester
, using mock classes SqlToRelTestBase.MockRelOptSchema
, SqlToRelTestBase.MockRelOptConnection
and MockRelOptPlanner
.
Field Summary | |
---|---|
private DiffRepository |
diffRepos
|
private SqlOperatorTable |
opTab
|
private RelOptPlanner |
planner
|
Constructor Summary | |
---|---|
protected |
SqlToRelTestBase.TesterImpl(DiffRepository diffRepos)
Creates a TesterImpl. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private RelOptPlanner planner
private SqlOperatorTable opTab
private final DiffRepository diffRepos
Constructor Detail |
---|
protected SqlToRelTestBase.TesterImpl(DiffRepository diffRepos)
diffRepos
- Diff repositoryMethod Detail |
---|
public RelNode convertSqlToRel(String sql)
SqlToRelTestBase.Tester
RelNode
tree.
convertSqlToRel
in interface SqlToRelTestBase.Tester
sql
- SQL statement
public SqlToRelTestBase.MockRelOptSchema createRelOptSchema(SqlValidatorCatalogReader catalogReader, RelDataTypeFactory typeFactory)
createRelOptSchema
in interface SqlToRelTestBase.Tester
protected SqlToRelConverter createSqlToRelConverter(SqlValidator validator, RelOptSchema relOptSchema, RelOptConnection relOptConnection, RelDataTypeFactory typeFactory)
protected RelDataTypeFactory createTypeFactory()
protected final RelOptPlanner getPlanner()
public SqlNode parseQuery(String sql) throws Exception
parseQuery
in interface SqlToRelTestBase.Tester
Exception
public SqlConformance getConformance()
SqlToRelTestBase.Tester
getConformance
in interface SqlToRelTestBase.Tester
public SqlValidator createValidator(SqlValidatorCatalogReader catalogReader, RelDataTypeFactory typeFactory)
SqlToRelTestBase.Tester
SqlValidator
.
createValidator
in interface SqlToRelTestBase.Tester
public final SqlOperatorTable getOperatorTable()
SqlToRelTestBase.Tester
SqlOperatorTable
to use.
getOperatorTable
in interface SqlToRelTestBase.Tester
protected SqlOperatorTable createOperatorTable()
public SqlValidatorCatalogReader createCatalogReader(RelDataTypeFactory typeFactory)
SqlToRelTestBase.Tester
SqlValidatorCatalogReader
.
createCatalogReader
in interface SqlToRelTestBase.Tester
public RelOptPlanner createPlanner()
createPlanner
in interface SqlToRelTestBase.Tester
public void assertConvertsTo(String sql, String plan)
SqlToRelTestBase.Tester
assertConvertsTo
in interface SqlToRelTestBase.Tester
sql
- SQL queryplan
- Expected planpublic DiffRepository getDiffRepos()
getDiffRepos
in interface SqlToRelTestBase.Tester
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |