Package org.apache.calcite.sql
Class SqlCreate
- java.lang.Object
-
- org.apache.calcite.sql.SqlNode
-
- org.apache.calcite.sql.SqlCall
-
- org.apache.calcite.sql.SqlDdl
-
- org.apache.calcite.sql.SqlCreate
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
SqlCreateForeignSchema
,SqlCreateFunction
,SqlCreateMaterializedView
,SqlCreateSchema
,SqlCreateTable
,SqlCreateType
,SqlCreateView
public abstract class SqlCreate extends SqlDdl
Base class for an CREATE statements parse tree nodes. The portion of the statement covered by this class is "CREATE [ OR REPLACE ]". Subclasses handle whatever comes afterwards.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
ifNotExists
Whether "IF NOT EXISTS" was specified.(package private) boolean
replace
Whether "OR REPLACE" was specified.-
Fields inherited from class org.apache.calcite.sql.SqlDdl
DDL_OPERATOR
-
Fields inherited from class org.apache.calcite.sql.SqlNode
EMPTY_ARRAY, pos
-
-
Constructor Summary
Constructors Constructor Description SqlCreate(SqlParserPos pos, boolean replace)
Deprecated.SqlCreate(SqlOperator operator, SqlParserPos pos, boolean replace, boolean ifNotExists)
Creates a SqlCreate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getReplace()
void
setReplace(boolean replace)
-
Methods inherited from class org.apache.calcite.sql.SqlDdl
getOperator
-
Methods inherited from class org.apache.calcite.sql.SqlCall
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, getOperandList, isCountStar, isExpanded, operand, operandCount, setOperand, unparse, validate
-
Methods inherited from class org.apache.calcite.sql.SqlNode
clone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toSqlString, toSqlString, toString, validateExpr
-
-
-
-
Constructor Detail
-
SqlCreate
public SqlCreate(SqlOperator operator, SqlParserPos pos, boolean replace, boolean ifNotExists)
Creates a SqlCreate.
-
SqlCreate
@Deprecated public SqlCreate(SqlParserPos pos, boolean replace)
Deprecated.
-
-