Class SqlAddPartitions

  • All Implemented Interfaces:
    Cloneable

    public class SqlAddPartitions
    extends SqlAlterTable
    ALTER TABLE DDL to add partitions to a table.
    • Constructor Detail

      • SqlAddPartitions

        public 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 Detail

      • ifPartitionNotExists

        public boolean ifPartitionNotExists()
      • getPartSpecs

        public List<org.apache.calcite.sql.SqlNodeList> getPartSpecs()
      • getPartProps

        public List<org.apache.calcite.sql.SqlNodeList> getPartProps()
      • getOperandList

        @Nonnull
        public List<org.apache.calcite.sql.SqlNode> getOperandList()
        Specified by:
        getOperandList in class org.apache.calcite.sql.SqlCall
      • unparse

        public void unparse​(org.apache.calcite.sql.SqlWriter writer,
                            int leftPrec,
                            int rightPrec)
        Overrides:
        unparse in class SqlAlterTable