Package org.apache.calcite.server
Class ServerDdlExecutor
java.lang.Object
org.apache.calcite.server.DdlExecutorImpl
org.apache.calcite.server.ServerDdlExecutor
- All Implemented Interfaces:
DdlExecutor
,ReflectiveVisitor
Executes DDL commands.
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)
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ServerDdlExecutor
Singleton instance.static final SqlParserImplFactory
Parser factory.Fields inherited from interface org.apache.calcite.server.DdlExecutor
USELESS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(SqlCreateForeignSchema create, CalcitePrepare.Context context) Executes aCREATE FOREIGN SCHEMA
command.void
execute
(SqlCreateFunction create, CalcitePrepare.Context context) Executes aCREATE FUNCTION
command.void
execute
(SqlCreateMaterializedView create, CalcitePrepare.Context context) Executes aCREATE MATERIALIZED VIEW
command.void
execute
(SqlCreateSchema create, CalcitePrepare.Context context) Executes aCREATE SCHEMA
command.void
execute
(SqlCreateTableLike create, CalcitePrepare.Context context) Executes aCREATE TABLE LIKE
command.void
execute
(SqlCreateTable create, CalcitePrepare.Context context) Executes aCREATE TABLE
command.void
execute
(SqlCreateType create, CalcitePrepare.Context context) Executes aCREATE TYPE
command.void
execute
(SqlCreateView create, CalcitePrepare.Context context) Executes aCREATE VIEW
command.void
execute
(SqlDropObject drop, CalcitePrepare.Context context) ExecutesDROP FUNCTION
,DROP TABLE
,DROP MATERIALIZED VIEW
,DROP TYPE
,DROP VIEW
commands.void
execute
(SqlDropSchema drop, CalcitePrepare.Context context) Executes aDROP SCHEMA
command.void
execute
(SqlTruncateTable truncate, CalcitePrepare.Context context) Executes aTRUNCATE TABLE
command.Methods inherited from class org.apache.calcite.server.DdlExecutorImpl
execute, executeDdl
-
Field Details
-
INSTANCE
Singleton instance. -
PARSER_FACTORY
Parser factory.
-
-
Constructor Details
-
ServerDdlExecutor
protected ServerDdlExecutor()Creates a ServerDdlExecutor. Protected only to allow sub-classing; useINSTANCE
where possible.
-
-
Method Details
-
execute
Executes aCREATE FOREIGN SCHEMA
command. -
execute
Executes aCREATE FUNCTION
command. -
execute
ExecutesDROP FUNCTION
,DROP TABLE
,DROP MATERIALIZED VIEW
,DROP TYPE
,DROP VIEW
commands. -
execute
Executes aTRUNCATE TABLE
command. -
execute
Executes aCREATE MATERIALIZED VIEW
command. -
execute
Executes aCREATE SCHEMA
command. -
execute
Executes aDROP SCHEMA
command. -
execute
Executes aCREATE TABLE
command. -
execute
Executes aCREATE TABLE LIKE
command. -
execute
Executes aCREATE TYPE
command. -
execute
Executes aCREATE VIEW
command.
-