public class SqlAlterTableAddConstraint extends SqlAlterTable
SqlAlterTable.AlterTableContext
ifTableExists, OPERATOR, partitionSpec, tableIdentifier
Constructor and Description |
---|
SqlAlterTableAddConstraint(org.apache.calcite.sql.SqlIdentifier tableID,
SqlTableConstraint constraint,
org.apache.calcite.sql.parser.SqlParserPos pos,
boolean ifTableExists)
Creates a add table constraint node.
|
Modifier and Type | Method and Description |
---|---|
SqlTableConstraint |
getConstraint() |
List<org.apache.calcite.sql.SqlNode> |
getOperandList() |
void |
unparse(org.apache.calcite.sql.SqlWriter writer,
int leftPrec,
int rightPrec) |
fullTableName, getOperator, getPartitionKVs, getPartitionSpec, getTableName, ifTableExists
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, isCountStar, isExpanded, operand, operandCount, setOperand, validate
public SqlAlterTableAddConstraint(org.apache.calcite.sql.SqlIdentifier tableID, SqlTableConstraint constraint, org.apache.calcite.sql.parser.SqlParserPos pos, boolean ifTableExists)
tableID
- Table IDconstraint
- Table constraintpos
- Parser positionifTableExists
- Whether IF EXISTS is specifiedpublic SqlTableConstraint getConstraint()
public List<org.apache.calcite.sql.SqlNode> getOperandList()
getOperandList
in class org.apache.calcite.sql.SqlCall
public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
unparse
in class SqlAlterTable
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.