org.apache.hadoop.hive.ql.plan
Class AlterTableSimpleDesc
java.lang.Object
org.apache.hadoop.hive.ql.plan.DDLDesc
org.apache.hadoop.hive.ql.plan.AlterTableSimpleDesc
- All Implemented Interfaces:
- Serializable
public class AlterTableSimpleDesc
- extends DDLDesc
Contains information needed to modify a partition or a table
- See Also:
- Serialized Form
AlterTableSimpleDesc
public AlterTableSimpleDesc()
AlterTableSimpleDesc
public AlterTableSimpleDesc(String dbName,
String tableName,
Map<String,String> partSpec,
AlterTableDesc.AlterTableTypes type)
- Parameters:
dbName
- database that contains the table / partitiontableName
- table containing the partitionpartSpec
- partition specification. Null if touching a table.
AlterTableSimpleDesc
public AlterTableSimpleDesc(String dbname,
String tableName,
LinkedHashMap<String,String> partSpec,
String compactionType)
- Constructor for ALTER TABLE ... COMPACT.
- Parameters:
dbname
- name of the database containing the tabletableName
- name of the table to compactpartSpec
- partition to compactcompactionType
- currently supported values: 'major' and 'minor'
getTableName
public String getTableName()
setTableName
public void setTableName(String tableName)
getDbName
public String getDbName()
setDbName
public void setDbName(String dbName)
getType
public AlterTableDesc.AlterTableTypes getType()
setType
public void setType(AlterTableDesc.AlterTableTypes type)
getPartSpec
public LinkedHashMap<String,String> getPartSpec()
setPartSpec
public void setPartSpec(LinkedHashMap<String,String> partSpec)
getCompactionType
public String getCompactionType()
- Get what type of compaction is being done by a ALTER TABLE ... COMPACT statement.
- Returns:
- Compaction type, currently supported values are 'major' and 'minor'.
Copyright © 2014 The Apache Software Foundation. All rights reserved.