Class SqlCreateMaterializedTable
- 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
-
- org.apache.flink.sql.parser.ddl.materializedtable.SqlCreateMaterializedTable
-
- All Implemented Interfaces:
Cloneable,ExtendedSqlNode
- Direct Known Subclasses:
SqlCreateOrAlterMaterializedTable
public class SqlCreateMaterializedTable extends SqlCreateObject implements ExtendedSqlNode
CREATE MATERIALIZED TABLE DDL sql call.
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.calcite.sql.SqlSpecialOperatorCREATE_OPERATOR-
Fields inherited from class org.apache.flink.sql.parser.ddl.SqlCreateObject
comment, name, properties
-
-
Constructor Summary
Constructors Constructor Description SqlCreateMaterializedTable(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, SqlWatermark watermark, org.apache.calcite.sql.SqlCharStringLiteral comment, SqlDistribution distribution, org.apache.calcite.sql.SqlNodeList partitionKeyList, org.apache.calcite.sql.SqlNodeList propertyList, org.apache.calcite.sql.SqlIntervalLiteral freshness, SqlRefreshMode refreshMode, SqlStartMode startMode, org.apache.calcite.sql.SqlNode asQuery)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.calcite.sql.SqlNodegetAsQuery()org.apache.calcite.sql.SqlNodeListgetColumnList()SqlDistributiongetDistribution()org.apache.calcite.sql.SqlIntervalLiteralgetFreshness()List<SqlTableConstraint>getFullConstraints()Returns the column constraints plus the table constraints.List<org.apache.calcite.sql.SqlNode>getOperandList()List<String>getPartitionKeyList()SqlRefreshModegetRefreshMode()protected StringgetScope()The scope will be used in unparse.SqlStartModegetStartMode()List<SqlTableConstraint>getTableConstraints()Optional<SqlWatermark>getWatermark()booleanisSchemaWithColumnsIdentifiersOnly()voidunparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)voidvalidate()-
Methods inherited from class org.apache.flink.sql.parser.ddl.SqlCreateObject
getComment, getFullName, getName, getProperties, isIfNotExists, isTemporary, unparseCreateIfNotExists
-
Methods inherited from class org.apache.calcite.sql.SqlCall
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, isCountStar, isExpanded, operand, operandCount, setOperand, validate
-
-
-
-
Constructor Detail
-
SqlCreateMaterializedTable
public SqlCreateMaterializedTable(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, SqlWatermark watermark, @Nullable org.apache.calcite.sql.SqlCharStringLiteral comment, @Nullable SqlDistribution distribution, org.apache.calcite.sql.SqlNodeList partitionKeyList, org.apache.calcite.sql.SqlNodeList propertyList, @Nullable org.apache.calcite.sql.SqlIntervalLiteral freshness, @Nullable SqlRefreshMode refreshMode, @Nullable SqlStartMode startMode, org.apache.calcite.sql.SqlNode asQuery)
-
-
Method Detail
-
getOperandList
public List<org.apache.calcite.sql.SqlNode> getOperandList()
- Specified by:
getOperandListin classorg.apache.calcite.sql.SqlCall
-
getColumnList
public org.apache.calcite.sql.SqlNodeList getColumnList()
-
getTableConstraints
public List<SqlTableConstraint> getTableConstraints()
-
getWatermark
public Optional<SqlWatermark> getWatermark()
-
getDistribution
@Nullable public SqlDistribution getDistribution()
-
getFreshness
@Nullable public org.apache.calcite.sql.SqlIntervalLiteral getFreshness()
-
getRefreshMode
@Nullable public SqlRefreshMode getRefreshMode()
-
getStartMode
@Nullable public SqlStartMode getStartMode()
-
getAsQuery
public org.apache.calcite.sql.SqlNode getAsQuery()
-
getFullConstraints
public List<SqlTableConstraint> getFullConstraints()
Returns the column constraints plus the table constraints.
-
validate
public void validate() throws SqlValidateException- Specified by:
validatein interfaceExtendedSqlNode- Throws:
SqlValidateException
-
isSchemaWithColumnsIdentifiersOnly
public boolean isSchemaWithColumnsIdentifiersOnly()
-
getScope
protected String getScope()
Description copied from class:SqlCreateObjectThe scope will be used in unparse.- Specified by:
getScopein classSqlCreateObject
-
unparse
public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)- Overrides:
unparsein classSqlCreateObject
-
-