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

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

Constructor Summary
RenamePartitionDesc()
          For serialization only.
RenamePartitionDesc(String dbName, String tableName, Map<String,String> oldPartSpec, Map<String,String> newPartSpec)
           
 
Method Summary
 String getDbName()
           
 String getLocation()
           
 LinkedHashMap<String,String> getNewPartSpec()
           
 LinkedHashMap<String,String> getOldPartSpec()
           
 String getTableName()
           
 void setDbName(String dbName)
           
 void setLocation(String location)
           
 void setNewPartSpec(LinkedHashMap<String,String> partSpec)
           
 void setOldPartSpec(LinkedHashMap<String,String> partSpec)
           
 void setTableName(String tableName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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 © 2014 The Apache Software Foundation. All rights reserved.