org.apache.hadoop.hive.ql.plan
Class AlterTableSimpleDesc

java.lang.Object
  extended by org.apache.hadoop.hive.ql.plan.DDLDesc
      extended by 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

Constructor Summary
AlterTableSimpleDesc()
           
AlterTableSimpleDesc(String dbname, String tableName, LinkedHashMap<String,String> partSpec, String compactionType)
          Constructor for ALTER TABLE ...
AlterTableSimpleDesc(String dbName, String tableName, Map<String,String> partSpec, AlterTableDesc.AlterTableTypes type)
           
 
Method Summary
 String getCompactionType()
          Get what type of compaction is being done by a ALTER TABLE ...
 String getDbName()
           
 LinkedHashMap<String,String> getPartSpec()
           
 String getTableName()
           
 AlterTableDesc.AlterTableTypes getType()
           
 void setDbName(String dbName)
           
 void setPartSpec(LinkedHashMap<String,String> partSpec)
           
 void setTableName(String tableName)
           
 void setType(AlterTableDesc.AlterTableTypes type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlterTableSimpleDesc

public AlterTableSimpleDesc()

AlterTableSimpleDesc

public AlterTableSimpleDesc(String dbName,
                            String tableName,
                            Map<String,String> partSpec,
                            AlterTableDesc.AlterTableTypes type)
Parameters:
dbName - database that contains the table / partition
tableName - table containing the partition
partSpec - 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 table
tableName - name of the table to compact
partSpec - partition to compact
compactionType - currently supported values: 'major' and 'minor'
Method Detail

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.