Package org.apache.flink.sql.parser.ddl
Class SqlAlterTableDropConstraint
- 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.SqlAlterTableDropConstraint
-
- All Implemented Interfaces:
Cloneable
public class SqlAlterTableDropConstraint extends SqlAlterTable
ALTER TABLE [IF EXISTS] [catalog_name.][db_name.]table_name DROP CONSTRAINT constraint_name.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.sql.parser.ddl.SqlAlterTable
SqlAlterTable.AlterTableContext
-
-
Field Summary
-
Fields inherited from class org.apache.flink.sql.parser.ddl.SqlAlterTable
ifTableExists, OPERATOR, partitionSpec, tableIdentifier
-
-
Constructor Summary
Constructors Constructor Description SqlAlterTableDropConstraint(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier tableName, org.apache.calcite.sql.SqlIdentifier constraintName, boolean ifTableExists)Creates an alter table drop constraint node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.calcite.sql.SqlIdentifiergetConstraintName()List<org.apache.calcite.sql.SqlNode>getOperandList()voidunparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)-
Methods inherited from class org.apache.flink.sql.parser.ddl.SqlAlterTable
fullTableName, getOperator, getPartitionKVs, getPartitionSpec, getTableName, ifTableExists
-
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
-
SqlAlterTableDropConstraint
public SqlAlterTableDropConstraint(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier tableName, org.apache.calcite.sql.SqlIdentifier constraintName, boolean ifTableExists)Creates an alter table drop constraint node.- Parameters:
pos- Parser positiontableName- Table nameconstraintName- Constraint nameifTableExists- Whether IF EXISTS is specified
-
-
Method Detail
-
getConstraintName
public org.apache.calcite.sql.SqlIdentifier getConstraintName()
-
getOperandList
public List<org.apache.calcite.sql.SqlNode> getOperandList()
- Specified by:
getOperandListin classorg.apache.calcite.sql.SqlCall
-
unparse
public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)- Overrides:
unparsein classSqlAlterTable
-
-