org.apache.hadoop.hive.ql.plan
Class RenamePartitionDesc
java.lang.Object
org.apache.hadoop.hive.ql.plan.DDLDesc
org.apache.hadoop.hive.ql.plan.RenamePartitionDesc
- All Implemented Interfaces:
- Serializable
public class RenamePartitionDesc
- extends DDLDesc
- implements Serializable
Contains the information needed to rename a partition.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RenamePartitionDesc
public RenamePartitionDesc()
- For serialization only.
RenamePartitionDesc
public RenamePartitionDesc(String dbName,
String tableName,
Map<String,String> oldPartSpec,
Map<String,String> newPartSpec)
- Parameters:
dbName
- database to add to.tableName
- table to add to.oldPartSpec
- old partition specification.newPartSpec
- new partition specification.
getDbName
public String getDbName()
- Returns:
- database name
setDbName
public void setDbName(String dbName)
- Parameters:
dbName
- database name
getTableName
public String getTableName()
- Returns:
- the table we're going to add the partitions to.
setTableName
public void setTableName(String tableName)
- Parameters:
tableName
- the table we're going to add the partitions to.
getLocation
public String getLocation()
- Returns:
- location of partition in relation to table
setLocation
public void setLocation(String location)
- Parameters:
location
- location of partition in relation to table
getOldPartSpec
public LinkedHashMap<String,String> getOldPartSpec()
- Returns:
- old partition specification.
setOldPartSpec
public void setOldPartSpec(LinkedHashMap<String,String> partSpec)
- Parameters:
partSpec
- partition specification
getNewPartSpec
public LinkedHashMap<String,String> getNewPartSpec()
- Returns:
- new partition specification.
setNewPartSpec
public void setNewPartSpec(LinkedHashMap<String,String> partSpec)
- Parameters:
partSpec
- partition specification
Copyright © 2013 The Apache Software Foundation