Package org.apache.flink.sql.parser.ddl
Class SqlCreateObject
- java.lang.Object
-
- org.apache.calcite.sql.SqlNode
-
- org.apache.calcite.sql.SqlCall
-
- org.apache.calcite.sql.SqlDdl
-
- org.apache.calcite.sql.SqlCreate
-
- org.apache.flink.sql.parser.ddl.SqlCreateObject
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
SqlCreateCatalog,SqlCreateConnection,SqlCreateDatabase,SqlCreateFunction,SqlCreateMaterializedTable,SqlCreateModel,SqlCreateTable,SqlCreateView
public abstract class SqlCreateObject extends org.apache.calcite.sql.SqlCreateBase class for CREATE DDL sql calls.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.calcite.sql.SqlCharStringLiteralcommentprotected org.apache.calcite.sql.SqlIdentifiernameprotected org.apache.calcite.sql.SqlNodeListproperties
-
Constructor Summary
Constructors Constructor Description SqlCreateObject(org.apache.calcite.sql.SqlOperator operator, org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier name, boolean isTemporary, boolean replace, boolean ifNotExists, org.apache.calcite.sql.SqlNodeList properties, org.apache.calcite.sql.SqlCharStringLiteral comment)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetComment()String[]getFullName()org.apache.calcite.sql.SqlIdentifiergetName()Map<String,String>getProperties()protected abstract StringgetScope()The scope will be used in unparse.booleanisIfNotExists()booleanisTemporary()voidunparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)protected voidunparseCreateIfNotExists(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)-
Methods inherited from class org.apache.calcite.sql.SqlCall
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, getOperandList, isCountStar, isExpanded, operand, operandCount, setOperand, validate
-
-
-
-
Constructor Detail
-
SqlCreateObject
public SqlCreateObject(org.apache.calcite.sql.SqlOperator operator, org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier name, boolean isTemporary, boolean replace, boolean ifNotExists, @Nullable org.apache.calcite.sql.SqlNodeList properties, @Nullable org.apache.calcite.sql.SqlCharStringLiteral comment)
-
-
Method Detail
-
getScope
protected abstract String getScope()
The scope will be used in unparse.
-
isIfNotExists
public boolean isIfNotExists()
-
isTemporary
public boolean isTemporary()
-
getComment
public String getComment()
-
getName
public org.apache.calcite.sql.SqlIdentifier getName()
-
getFullName
public String[] getFullName()
-
unparse
public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)- Overrides:
unparsein classorg.apache.calcite.sql.SqlCall
-
unparseCreateIfNotExists
protected void unparseCreateIfNotExists(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
-
-