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
FieldsModifier and TypeFieldDescriptionstatic final ServerDdlExecutorSingleton instance.static final SqlParserImplFactoryParser factory.Fields inherited from interface org.apache.calcite.server.DdlExecutor
USELESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(SqlCreateForeignSchema create, CalcitePrepare.Context context) Executes aCREATE FOREIGN SCHEMAcommand.voidexecute(SqlCreateFunction create, CalcitePrepare.Context context) Executes aCREATE FUNCTIONcommand.voidexecute(SqlCreateMaterializedView create, CalcitePrepare.Context context) Executes aCREATE MATERIALIZED VIEWcommand.voidexecute(SqlCreateSchema create, CalcitePrepare.Context context) Executes aCREATE SCHEMAcommand.voidexecute(SqlCreateTableLike create, CalcitePrepare.Context context) Executes aCREATE TABLE LIKEcommand.voidexecute(SqlCreateTable create, CalcitePrepare.Context context) Executes aCREATE TABLEcommand.voidexecute(SqlCreateType create, CalcitePrepare.Context context) Executes aCREATE TYPEcommand.voidexecute(SqlCreateView create, CalcitePrepare.Context context) Executes aCREATE VIEWcommand.voidexecute(SqlDropObject drop, CalcitePrepare.Context context) ExecutesDROP FUNCTION,DROP TABLE,DROP MATERIALIZED VIEW,DROP TYPE,DROP VIEWcommands.voidexecute(SqlDropSchema drop, CalcitePrepare.Context context) Executes aDROP SCHEMAcommand.voidexecute(SqlTruncateTable truncate, CalcitePrepare.Context context) Executes aTRUNCATE TABLEcommand.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; useINSTANCEwhere possible.
-
-
Method Details
-
execute
Executes aCREATE FOREIGN SCHEMAcommand. -
execute
Executes aCREATE FUNCTIONcommand. -
execute
ExecutesDROP FUNCTION,DROP TABLE,DROP MATERIALIZED VIEW,DROP TYPE,DROP VIEWcommands. -
execute
Executes aTRUNCATE TABLEcommand. -
execute
Executes aCREATE MATERIALIZED VIEWcommand. -
execute
Executes aCREATE SCHEMAcommand. -
execute
Executes aDROP SCHEMAcommand. -
execute
Executes aCREATE TABLEcommand. -
execute
Executes aCREATE TABLE LIKEcommand. -
execute
Executes aCREATE TYPEcommand. -
execute
Executes aCREATE VIEWcommand.
-