org.apache.hadoop.hive.ql.plan
Class alterTableDesc
java.lang.Object
org.apache.hadoop.hive.ql.plan.ddlDesc
org.apache.hadoop.hive.ql.plan.alterTableDesc
- All Implemented Interfaces:
- Serializable
public class alterTableDesc
- extends ddlDesc
- implements Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
alterTableDesc
public alterTableDesc(String oldName,
String newName)
- Parameters:
oldName
- old name of the tablenewName
- new name of the table
alterTableDesc
public alterTableDesc(String name,
List<FieldSchema> newCols,
alterTableDesc.alterTableTypes alterType)
- Parameters:
name
- name of the tablenewCols
- new columns to be added
alterTableDesc
public alterTableDesc(alterTableDesc.alterTableTypes alterType)
- Parameters:
alterType
- type of alter op
getOldName
public String getOldName()
- Returns:
- the old name of the table
setOldName
public void setOldName(String oldName)
- Parameters:
oldName
- the oldName to set
getNewName
public String getNewName()
- Returns:
- the newName
setNewName
public void setNewName(String newName)
- Parameters:
newName
- the newName to set
getOp
public alterTableDesc.alterTableTypes getOp()
- Returns:
- the op
getAlterTableTypeString
public String getAlterTableTypeString()
setOp
public void setOp(alterTableDesc.alterTableTypes op)
- Parameters:
op
- the op to set
getNewCols
public List<FieldSchema> getNewCols()
- Returns:
- the newCols
getNewColsString
public List<String> getNewColsString()
setNewCols
public void setNewCols(List<FieldSchema> newCols)
- Parameters:
newCols
- the newCols to set
getSerdeName
public String getSerdeName()
- Returns:
- the serdeName
setSerdeName
public void setSerdeName(String serdeName)
- Parameters:
serdeName
- the serdeName to set
getProps
public Map<String,String> getProps()
- Returns:
- the props
setProps
public void setProps(Map<String,String> props)
- Parameters:
props
- the props to set
Copyright © 2009 The Apache Software Foundation