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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.plan.AddPartitionDesc

public class AddPartitionDesc
extends Object

Contains the information needed to add a partition.


Constructor Summary
AddPartitionDesc(String dbName, String tableName, Map<String,String> partSpec, String location, boolean ifNotExists)
           
 
Method Summary
 String getDbName()
           
 boolean getIfNotExists()
           
 String getLocation()
           
 Map<String,String> getPartSpec()
           
 String getTableName()
           
 void setDbName(String dbName)
           
 void setIfNotExists(boolean ifNotExists)
           
 void setLocation(String location)
           
 void setPartSpec(Map<String,String> partSpec)
           
 void setTableName(String tableName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddPartitionDesc

public AddPartitionDesc(String dbName,
                        String tableName,
                        Map<String,String> partSpec,
                        String location,
                        boolean ifNotExists)
Parameters:
dbName - database to add to.
tableName - table to add to.
partSpec - partition specification.
location - partition location, relative to table location.
ifNotExists - if true, the partition is only added if it doesn't exist
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

getPartSpec

public Map<String,String> getPartSpec()
Returns:
partition specification.

setPartSpec

public void setPartSpec(Map<String,String> partSpec)
Parameters:
partSpec - partition specification

getIfNotExists

public boolean getIfNotExists()
Returns:
if the partition should only be added if it doesn't exist already

setIfNotExists

public void setIfNotExists(boolean ifNotExists)
Parameters:
ifNotExists - if the part should be added only if it doesn't exist


Copyright © 2009 The Apache Software Foundation