public class SqlCreateTable extends org.apache.calcite.sql.SqlCreate implements ExtendedSqlNode
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SqlCreateTable.TableCreationContext
Table creation context.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static org.apache.calcite.sql.SqlSpecialOperator |
OPERATOR |
| 限定符 | 构造器和说明 |
|---|---|
|
SqlCreateTable(org.apache.calcite.sql.parser.SqlParserPos pos,
org.apache.calcite.sql.SqlIdentifier tableName,
org.apache.calcite.sql.SqlNodeList columnList,
List<SqlTableConstraint> tableConstraints,
org.apache.calcite.sql.SqlNodeList propertyList,
org.apache.calcite.sql.SqlNodeList partitionKeyList,
SqlWatermark watermark,
org.apache.calcite.sql.SqlCharStringLiteral comment,
boolean isTemporary,
boolean ifNotExists) |
protected |
SqlCreateTable(org.apache.calcite.sql.SqlSpecialOperator operator,
org.apache.calcite.sql.parser.SqlParserPos pos,
org.apache.calcite.sql.SqlIdentifier tableName,
org.apache.calcite.sql.SqlNodeList columnList,
List<SqlTableConstraint> tableConstraints,
org.apache.calcite.sql.SqlNodeList propertyList,
org.apache.calcite.sql.SqlNodeList partitionKeyList,
SqlWatermark watermark,
org.apache.calcite.sql.SqlCharStringLiteral comment,
boolean isTemporary,
boolean ifNotExists) |
| 限定符和类型 | 方法和说明 |
|---|---|
String[] |
fullTableName() |
org.apache.calcite.sql.SqlNodeList |
getColumnList() |
String |
getColumnSqlString()
Returns the projection format of the DDL columns(including computed columns). i.e. the
following DDL:
create table tbl1(
col1 int,
col2 varchar,
col3 as to_timestamp(col2)
) with (
'connector' = 'csv'
)
is equivalent with query "col1, col2, to_timestamp(col2) as col3", caution that the
"computed column" operands have been reversed.
|
Optional<org.apache.calcite.sql.SqlCharStringLiteral> |
getComment() |
List<SqlTableConstraint> |
getFullConstraints()
Returns the column constraints plus the table constraints.
|
List<org.apache.calcite.sql.SqlNode> |
getOperandList() |
org.apache.calcite.sql.SqlOperator |
getOperator() |
org.apache.calcite.sql.SqlNodeList |
getPartitionKeyList() |
org.apache.calcite.sql.SqlNodeList |
getPropertyList() |
List<SqlTableConstraint> |
getTableConstraints() |
org.apache.calcite.sql.SqlIdentifier |
getTableName() |
Optional<SqlWatermark> |
getWatermark() |
boolean |
hasRegularColumnsOnly() |
boolean |
isIfNotExists() |
boolean |
isTemporary() |
void |
unparse(org.apache.calcite.sql.SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
validate() |
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, isCountStar, isExpanded, operand, operandCount, setOperand, validatepublic SqlCreateTable(org.apache.calcite.sql.parser.SqlParserPos pos,
org.apache.calcite.sql.SqlIdentifier tableName,
org.apache.calcite.sql.SqlNodeList columnList,
List<SqlTableConstraint> tableConstraints,
org.apache.calcite.sql.SqlNodeList propertyList,
org.apache.calcite.sql.SqlNodeList partitionKeyList,
@Nullable
SqlWatermark watermark,
@Nullable
org.apache.calcite.sql.SqlCharStringLiteral comment,
boolean isTemporary,
boolean ifNotExists)
protected SqlCreateTable(org.apache.calcite.sql.SqlSpecialOperator operator,
org.apache.calcite.sql.parser.SqlParserPos pos,
org.apache.calcite.sql.SqlIdentifier tableName,
org.apache.calcite.sql.SqlNodeList columnList,
List<SqlTableConstraint> tableConstraints,
org.apache.calcite.sql.SqlNodeList propertyList,
org.apache.calcite.sql.SqlNodeList partitionKeyList,
@Nullable
SqlWatermark watermark,
@Nullable
org.apache.calcite.sql.SqlCharStringLiteral comment,
boolean isTemporary,
boolean ifNotExists)
@Nonnull public org.apache.calcite.sql.SqlOperator getOperator()
getOperator 在类中 org.apache.calcite.sql.SqlDdl@Nonnull public List<org.apache.calcite.sql.SqlNode> getOperandList()
getOperandList 在类中 org.apache.calcite.sql.SqlCallpublic org.apache.calcite.sql.SqlIdentifier getTableName()
public org.apache.calcite.sql.SqlNodeList getColumnList()
public org.apache.calcite.sql.SqlNodeList getPropertyList()
public org.apache.calcite.sql.SqlNodeList getPartitionKeyList()
public List<SqlTableConstraint> getTableConstraints()
public Optional<SqlWatermark> getWatermark()
public Optional<org.apache.calcite.sql.SqlCharStringLiteral> getComment()
public boolean isIfNotExists()
public boolean isTemporary()
public void validate()
throws SqlValidateException
validate 在接口中 ExtendedSqlNodeSqlValidateExceptionpublic boolean hasRegularColumnsOnly()
public List<SqlTableConstraint> getFullConstraints()
public String getColumnSqlString()
create table tbl1(
col1 int,
col2 varchar,
col3 as to_timestamp(col2)
) with (
'connector' = 'csv'
)
is equivalent with query "col1, col2, to_timestamp(col2) as col3", caution that the "computed column" operands have been reversed.
public void unparse(org.apache.calcite.sql.SqlWriter writer,
int leftPrec,
int rightPrec)
unparse 在类中 org.apache.calcite.sql.SqlCallpublic String[] fullTableName()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.