public class AddPartitionDesc extends DDLDesc implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AddPartitionDesc.OnePartitionDesc |
Constructor and Description |
---|
AddPartitionDesc()
For serialization only.
|
AddPartitionDesc(String dbName,
String tableName,
boolean ifNotExists) |
AddPartitionDesc(String dbName,
String tableName,
Map<String,String> partSpec,
String location,
Map<String,String> params)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addPartition(Map<String,String> partSpec,
String location) |
String |
getDbName() |
String |
getLocationForExplain() |
AddPartitionDesc.OnePartitionDesc |
getPartition(int i) |
int |
getPartitionCount() |
String |
getPartSpecStringForExplain() |
boolean |
getReplaceMode() |
String |
getTableName() |
boolean |
isIfNotExists() |
void |
setDbName(String dbName) |
void |
setIfNotExists(boolean ifNotExists) |
void |
setReplaceMode(boolean replaceMode) |
void |
setTableName(String tableName) |
public AddPartitionDesc()
@Deprecated public AddPartitionDesc(String dbName, String tableName, Map<String,String> partSpec, String location, Map<String,String> params)
dbName
- database to add to.tableName
- table to add to.partSpec
- partition specification.location
- partition location, relative to table location.params
- partition parameters.public String getDbName()
public void setDbName(String dbName)
dbName
- database namepublic String getTableName()
public void setTableName(String tableName)
tableName
- the table we're going to add the partitions to.public String getLocationForExplain()
public String getPartSpecStringForExplain()
public boolean isIfNotExists()
public void setIfNotExists(boolean ifNotExists)
ifNotExists
- if the part should be added only if it doesn't existpublic int getPartitionCount()
public AddPartitionDesc.OnePartitionDesc getPartition(int i)
public void setReplaceMode(boolean replaceMode)
replaceMode
- Determine if this AddPartition should behave like a replace-into alter insteadpublic boolean getReplaceMode()
Copyright © 2017 The Apache Software Foundation. All rights reserved.