Package org.apache.calcite.test
Class MockDdlExecutor
java.lang.Object
org.apache.calcite.server.DdlExecutorImpl
org.apache.calcite.test.MockDdlExecutor
- All Implemented Interfaces:
 DdlExecutor,ReflectiveVisitor
Executes the few DDL commands.
- 
Field Summary
Fields inherited from interface org.apache.calcite.server.DdlExecutor
USELESS - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(SqlCreateTable create, CalcitePrepare.Context context) Executes aCREATE TABLEcommand.voidexecute(SqlCreateView create, CalcitePrepare.Context context) Executes aCREATE VIEWcommand.protected voidforEachNameType(SqlCreateTable createTable, BiConsumer<SqlIdentifier, SqlDataTypeSpec> consumer) Calls an action for each (name, type) pair fromSqlCreateTable::columnList, in which they alternate.protected static voidpopulate(SqlIdentifier name, SqlNode query, CalcitePrepare.Context context) Populates the table callednameby executingquery.Methods inherited from class org.apache.calcite.server.DdlExecutorImpl
execute, executeDdl 
- 
Constructor Details
- 
MockDdlExecutor
public MockDdlExecutor() 
 - 
 - 
Method Details
- 
execute
Executes aCREATE TABLEcommand. Called via reflection. - 
execute
Executes aCREATE VIEWcommand. - 
populate
Populates the table callednameby executingquery. - 
forEachNameType
protected void forEachNameType(SqlCreateTable createTable, BiConsumer<SqlIdentifier, SqlDataTypeSpec> consumer) Calls an action for each (name, type) pair fromSqlCreateTable::columnList, in which they alternate. 
 -