Package org.apache.flink.sql.parser.ddl
Class SqlDropPartitions
- 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.SqlDropPartitions
-
- All Implemented Interfaces:
Cloneable
public class SqlDropPartitions extends SqlAlterTable
ALTER TABLE DDL to drop partitions of a table.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSqlDropPartitions.AlterTableDropPartitionsContextAlter 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 SqlDropPartitions(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier tableName, boolean ifExists, List<org.apache.calcite.sql.SqlNodeList> partSpecs)
-
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>getPartSpecs()booleanifExists()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
-
SqlDropPartitions
public SqlDropPartitions(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier tableName, boolean ifExists, List<org.apache.calcite.sql.SqlNodeList> partSpecs)
-
-
Method Detail
-
ifExists
public boolean ifExists()
-
getPartSpecs
public List<org.apache.calcite.sql.SqlNodeList> getPartSpecs()
-
getPartitionKVs
public LinkedHashMap<String,String> getPartitionKVs(int i)
-
unparse
public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)- Overrides:
unparsein classSqlAlterTable
-
getOperandList
@Nonnull public List<org.apache.calcite.sql.SqlNode> getOperandList()
- Specified by:
getOperandListin classorg.apache.calcite.sql.SqlCall
-
-