Package org.apache.flink.sql.parser.ddl
Class SqlAlterTableSchema
- java.lang.Object
-
- org.apache.calcite.sql.SqlNode
-
- org.apache.calcite.sql.SqlCall
-
- org.apache.flink.sql.parser.ddl.SqlAlterTable
-
- org.apache.flink.sql.parser.ddl.SqlAlterTableSchema
-
- All Implemented Interfaces:
Cloneable,ExtendedSqlNode
- Direct Known Subclasses:
SqlAlterTableAdd,SqlAlterTableModify
public abstract class SqlAlterTableSchema extends SqlAlterTable implements ExtendedSqlNode
Abstract class to describe statements which are used to alter table schema.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.sql.parser.ddl.SqlAlterTable
SqlAlterTable.AlterTableContext
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.calcite.sql.SqlNodeListcolumnListprotected List<SqlTableConstraint>constraintsprotected SqlWatermarkwatermark-
Fields inherited from class org.apache.flink.sql.parser.ddl.SqlAlterTable
ifTableExists, OPERATOR, partitionSpec, tableIdentifier
-
-
Constructor Summary
Constructors Constructor Description SqlAlterTableSchema(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier tableName, org.apache.calcite.sql.SqlNodeList columnList, List<SqlTableConstraint> constraints, SqlWatermark sqlWatermark, boolean ifTableExists)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.calcite.sql.SqlNodeListgetColumnPositions()List<SqlTableConstraint>getConstraints()Optional<SqlTableConstraint>getFullConstraint()List<org.apache.calcite.sql.SqlNode>getOperandList()Optional<SqlWatermark>getWatermark()voidvalidate()-
Methods inherited from class org.apache.flink.sql.parser.ddl.SqlAlterTable
fullTableName, getOperator, getPartitionKVs, getPartitionSpec, getTableName, ifTableExists, unparse
-
Methods inherited from class org.apache.calcite.sql.SqlCall
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, isCountStar, isExpanded, operand, operandCount, setOperand, validate
-
-
-
-
Field Detail
-
columnList
protected final org.apache.calcite.sql.SqlNodeList columnList
-
watermark
@Nullable protected final SqlWatermark watermark
-
constraints
protected final List<SqlTableConstraint> constraints
-
-
Constructor Detail
-
SqlAlterTableSchema
public SqlAlterTableSchema(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier tableName, org.apache.calcite.sql.SqlNodeList columnList, List<SqlTableConstraint> constraints, @Nullable SqlWatermark sqlWatermark, boolean ifTableExists)
-
-
Method Detail
-
getOperandList
@Nonnull public List<org.apache.calcite.sql.SqlNode> getOperandList()
- Specified by:
getOperandListin classorg.apache.calcite.sql.SqlCall
-
validate
public void validate() throws SqlValidateException- Specified by:
validatein interfaceExtendedSqlNode- Throws:
SqlValidateException
-
getColumnPositions
public org.apache.calcite.sql.SqlNodeList getColumnPositions()
-
getWatermark
public Optional<SqlWatermark> getWatermark()
-
getConstraints
public List<SqlTableConstraint> getConstraints()
-
getFullConstraint
public Optional<SqlTableConstraint> getFullConstraint()
-
-