public class ServerDdlExecutor
extends org.apache.calcite.server.DdlExecutorImpl
Given a DDL command that is a sub-class of SqlNode, dispatches
the command to an appropriate execute method. For example,
"CREATE TABLE" (SqlCreateTable) is dispatched to
execute(SqlCreateTable, CalcitePrepare.Context).
| 限定符和类型 | 字段和说明 |
|---|---|
static ServerDdlExecutor |
INSTANCE
Singleton instance.
|
static org.apache.calcite.sql.parser.SqlParserImplFactory |
PARSER_FACTORY
Parser factory.
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
ServerDdlExecutor()
Creates a ServerDdlExecutor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
execute(org.apache.calcite.sql.ddl.SqlCreateForeignSchema create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
Executes a
CREATE FOREIGN SCHEMA command. |
void |
execute(org.apache.calcite.sql.ddl.SqlCreateFunction create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
Executes a
CREATE FUNCTION command. |
void |
execute(org.apache.calcite.sql.ddl.SqlCreateMaterializedView create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
Executes a
CREATE MATERIALIZED VIEW command. |
void |
execute(org.apache.calcite.sql.ddl.SqlCreateSchema create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
Executes a
CREATE SCHEMA command. |
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.SqlCreateTableLike create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
Executes a
CREATE TABLE LIKE command. |
void |
execute(org.apache.calcite.sql.ddl.SqlCreateType create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
Executes a
CREATE TYPE command. |
void |
execute(org.apache.calcite.sql.ddl.SqlCreateView create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
Executes a
CREATE VIEW command. |
void |
execute(org.apache.calcite.sql.ddl.SqlDropObject drop,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
Executes
DROP FUNCTION, DROP TABLE,
DROP MATERIALIZED VIEW, DROP TYPE,
DROP VIEW commands. |
void |
execute(org.apache.calcite.sql.ddl.SqlDropSchema drop,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
Executes a
DROP SCHEMA command. |
void |
execute(org.apache.calcite.sql.ddl.SqlTruncateTable truncate,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
Executes a
TRUNCATE TABLE command. |
public static final ServerDdlExecutor INSTANCE
public static final org.apache.calcite.sql.parser.SqlParserImplFactory PARSER_FACTORY
protected ServerDdlExecutor()
INSTANCE where possible.public void execute(org.apache.calcite.sql.ddl.SqlCreateForeignSchema create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
CREATE FOREIGN SCHEMA command.public void execute(org.apache.calcite.sql.ddl.SqlCreateFunction create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
CREATE FUNCTION command.public void execute(org.apache.calcite.sql.ddl.SqlDropObject drop,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
DROP FUNCTION, DROP TABLE,
DROP MATERIALIZED VIEW, DROP TYPE,
DROP VIEW commands.public void execute(org.apache.calcite.sql.ddl.SqlTruncateTable truncate,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
TRUNCATE TABLE command.public void execute(org.apache.calcite.sql.ddl.SqlCreateMaterializedView create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
CREATE MATERIALIZED VIEW command.public void execute(org.apache.calcite.sql.ddl.SqlCreateSchema create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
CREATE SCHEMA command.public void execute(org.apache.calcite.sql.ddl.SqlDropSchema drop,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
DROP SCHEMA command.public void execute(org.apache.calcite.sql.ddl.SqlCreateTable create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
CREATE TABLE command.public void execute(org.apache.calcite.sql.ddl.SqlCreateTableLike create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
CREATE TABLE LIKE command.public void execute(org.apache.calcite.sql.ddl.SqlCreateType create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
CREATE TYPE command.public void execute(org.apache.calcite.sql.ddl.SqlCreateView create,
org.apache.calcite.jdbc.CalcitePrepare.Context context)
CREATE VIEW command.Copyright © 2012-2023 Apache Software Foundation. All Rights Reserved.