org.apache.hadoop.hive.ql.plan
Class AddPartitionDesc
java.lang.Object
org.apache.hadoop.hive.ql.plan.DDLDesc
org.apache.hadoop.hive.ql.plan.AddPartitionDesc
- All Implemented Interfaces:
- Serializable
public class AddPartitionDesc
- extends DDLDesc
- implements Serializable
Contains the information needed to add a partition.
- See Also:
- Serialized Form
Constructor Summary |
AddPartitionDesc()
For serialization only. |
AddPartitionDesc(String dbName,
String tableName,
Map<String,String> partSpec,
String location,
boolean ifNotExists,
boolean expectView)
|
AddPartitionDesc(String dbName,
String tableName,
Map<String,String> partSpec,
String location,
Map<String,String> params)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddPartitionDesc
public AddPartitionDesc()
- For serialization only.
AddPartitionDesc
public AddPartitionDesc(String dbName,
String tableName,
Map<String,String> partSpec,
String location,
Map<String,String> params)
- Parameters:
dbName
- database to add to.tableName
- table to add to.partSpec
- partition specification.location
- partition location, relative to table location.params
- partition parameters.
AddPartitionDesc
public AddPartitionDesc(String dbName,
String tableName,
Map<String,String> partSpec,
String location,
boolean ifNotExists,
boolean expectView)
- 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 existexpectView
- true for ALTER VIEW, false for ALTER TABLE
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 LinkedHashMap<String,String> getPartSpec()
- Returns:
- partition specification.
setPartSpec
public void setPartSpec(LinkedHashMap<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
getPartParams
public Map<String,String> getPartParams()
- Returns:
- partition parameters.
setPartParams
public void setPartParams(Map<String,String> partParams)
- Parameters:
partParams
- partition parameters
getNumBuckets
public int getNumBuckets()
setNumBuckets
public void setNumBuckets(int numBuckets)
getCols
public List<FieldSchema> getCols()
setCols
public void setCols(List<FieldSchema> cols)
getSerializationLib
public String getSerializationLib()
setSerializationLib
public void setSerializationLib(String serializationLib)
getSerdeParams
public Map<String,String> getSerdeParams()
setSerdeParams
public void setSerdeParams(Map<String,String> serdeParams)
getBucketCols
public List<String> getBucketCols()
setBucketCols
public void setBucketCols(List<String> bucketCols)
getSortCols
public List<Order> getSortCols()
setSortCols
public void setSortCols(List<Order> sortCols)
getInputFormat
public String getInputFormat()
setInputFormat
public void setInputFormat(String inputFormat)
getOutputFormat
public String getOutputFormat()
setOutputFormat
public void setOutputFormat(String outputFormat)
getExpectView
public boolean getExpectView()
setExpectView
public void setExpectView(boolean expectView)
- Parameters:
expectView
- set whether to expect a view being altered
Copyright © 2013 The Apache Software Foundation