Package org.apache.flink.sql.parser.ddl
Class SqlAddPartitions
- 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.SqlAddPartitions
-
- All Implemented Interfaces:
Cloneable
public class SqlAddPartitions extends SqlAlterTable
ALTER TABLE DDL to add partitions to a table.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSqlAddPartitions.AlterTableAddPartitionContextAlter table add partition context.-
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 SqlAddPartitions(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier tableName, boolean ifPartitionNotExists, List<org.apache.calcite.sql.SqlNodeList> partSpecs, List<org.apache.calcite.sql.SqlNodeList> partProps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.apache.calcite.sql.SqlNode>getOperandList()LinkedHashMap<String,String>getPartitionKVs(int i)List<org.apache.calcite.sql.SqlNodeList>getPartProps()List<org.apache.calcite.sql.SqlNodeList>getPartSpecs()booleanifPartitionNotExists()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
-
-
-
-
Method Detail
-
ifPartitionNotExists
public boolean ifPartitionNotExists()
-
getPartSpecs
public List<org.apache.calcite.sql.SqlNodeList> getPartSpecs()
-
getPartitionKVs
public LinkedHashMap<String,String> getPartitionKVs(int i)
-
getPartProps
public List<org.apache.calcite.sql.SqlNodeList> getPartProps()
-
getOperandList
@Nonnull 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
-
-