Package org.apache.calcite.server
Class DdlExecutorImpl
java.lang.Object
org.apache.calcite.server.DdlExecutorImpl
- All Implemented Interfaces:
DdlExecutor
,ReflectiveVisitor
- Direct Known Subclasses:
MockDdlExecutor
,ServerDdlExecutor
Abstract implementation of
DdlExecutor
.-
Field Summary
Fields inherited from interface org.apache.calcite.server.DdlExecutor
USELESS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(SqlNode node, CalcitePrepare.Context context) Template for methods that execute DDL commands.void
executeDdl
(CalcitePrepare.Context context, SqlNode node) Executes a DDL statement.
-
Constructor Details
-
DdlExecutorImpl
protected DdlExecutorImpl()Creates a DdlExecutorImpl. Protected only to allow sub-classing; use a singleton instance where possible.
-
-
Method Details
-
executeDdl
Description copied from interface:DdlExecutor
Executes a DDL statement.The statement identified itself as DDL in the
CalcitePrepare.ParseResult.kind()
field.- Specified by:
executeDdl
in interfaceDdlExecutor
-
execute
Template for methods that execute DDL commands.The base implementation throws
UnsupportedOperationException
because aSqlNode
is not DDL, but overloaded methods such aspublic void execute(SqlCreateFoo, CalcitePrepare.Context)
are called via reflection.
-