public class MockDdlExecutor
extends org.apache.calcite.server.DdlExecutorImpl
| 构造器和说明 |
|---|
MockDdlExecutor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
execute(org.apache.calcite.sql.ddl.SqlCreateTable create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
Executes a
CREATE TABLE command. |
void |
execute(org.apache.calcite.sql.ddl.SqlCreateView create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
Executes a
CREATE VIEW command. |
protected void |
forEachNameType(org.apache.calcite.sql.ddl.SqlCreateTable createTable,
BiConsumer<org.apache.calcite.sql.SqlIdentifier,org.apache.calcite.sql.SqlDataTypeSpec> consumer)
Calls an action for each (name, type) pair from
SqlCreateTable::columnList, in which
they alternate. |
protected static void |
populate(org.apache.calcite.sql.SqlIdentifier name,
org.apache.calcite.sql.SqlNode query,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
Populates the table called
name by executing query. |
public void execute(org.apache.calcite.sql.ddl.SqlCreateTable create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
CREATE TABLE command. Called via reflection.public void execute(org.apache.calcite.sql.ddl.SqlCreateView create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
CREATE VIEW command.protected static void populate(org.apache.calcite.sql.SqlIdentifier name,
org.apache.calcite.sql.SqlNode query,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
name by executing query.protected void forEachNameType(org.apache.calcite.sql.ddl.SqlCreateTable createTable,
BiConsumer<org.apache.calcite.sql.SqlIdentifier,org.apache.calcite.sql.SqlDataTypeSpec> consumer)
SqlCreateTable::columnList, in which
they alternate.Copyright © 2012-2023 Apache Software Foundation. All Rights Reserved.