public abstract class SqlAlterTable
extends org.apache.calcite.sql.SqlCall
Modifier and Type | Class and Description |
---|---|
static class |
SqlAlterTable.AlterTableContext
Alter table context.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
ifTableExists |
static org.apache.calcite.sql.SqlSpecialOperator |
OPERATOR |
protected org.apache.calcite.sql.SqlNodeList |
partitionSpec |
protected org.apache.calcite.sql.SqlIdentifier |
tableIdentifier |
Constructor and Description |
---|
SqlAlterTable(org.apache.calcite.sql.parser.SqlParserPos pos,
org.apache.calcite.sql.SqlIdentifier tableName,
boolean ifTableExists) |
SqlAlterTable(org.apache.calcite.sql.parser.SqlParserPos pos,
org.apache.calcite.sql.SqlIdentifier tableName,
org.apache.calcite.sql.SqlNodeList partitionSpec) |
SqlAlterTable(org.apache.calcite.sql.parser.SqlParserPos pos,
org.apache.calcite.sql.SqlIdentifier tableName,
org.apache.calcite.sql.SqlNodeList partitionSpec,
boolean ifTableExists) |
Modifier and Type | Method and Description |
---|---|
String[] |
fullTableName() |
org.apache.calcite.sql.SqlOperator |
getOperator() |
LinkedHashMap<String,String> |
getPartitionKVs()
Get partition spec as key-value strings.
|
org.apache.calcite.sql.SqlNodeList |
getPartitionSpec()
Returns the partition spec if the ALTER should be applied to partitions, and null otherwise.
|
org.apache.calcite.sql.SqlIdentifier |
getTableName() |
boolean |
ifTableExists()
Whether to ignore the error if the table doesn't exist.
|
void |
unparse(org.apache.calcite.sql.SqlWriter writer,
int leftPrec,
int rightPrec) |
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, getOperandList, isCountStar, isExpanded, operand, operandCount, setOperand, validate
public static final org.apache.calcite.sql.SqlSpecialOperator OPERATOR
protected final org.apache.calcite.sql.SqlIdentifier tableIdentifier
protected final org.apache.calcite.sql.SqlNodeList partitionSpec
protected final boolean ifTableExists
public SqlAlterTable(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier tableName, @Nullable org.apache.calcite.sql.SqlNodeList partitionSpec, boolean ifTableExists)
public SqlAlterTable(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier tableName, boolean ifTableExists)
public SqlAlterTable(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier tableName, @Nullable org.apache.calcite.sql.SqlNodeList partitionSpec)
public org.apache.calcite.sql.SqlOperator getOperator()
getOperator
in class org.apache.calcite.sql.SqlCall
public org.apache.calcite.sql.SqlIdentifier getTableName()
public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
unparse
in class org.apache.calcite.sql.SqlCall
public String[] fullTableName()
public org.apache.calcite.sql.SqlNodeList getPartitionSpec()
public LinkedHashMap<String,String> getPartitionKVs()
public boolean ifTableExists()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.