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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.plan.ddlDesc
      extended by org.apache.hadoop.hive.ql.plan.alterTableDesc
All Implemented Interfaces:
Serializable

public class alterTableDesc
extends ddlDesc
implements Serializable

See Also:
Serialized Form

Nested Class Summary
static class alterTableDesc.alterTableTypes
           
 
Constructor Summary
alterTableDesc(alterTableDesc.alterTableTypes alterType)
           
alterTableDesc(String name, List<FieldSchema> newCols, alterTableDesc.alterTableTypes alterType)
           
alterTableDesc(String oldName, String newName)
           
 
Method Summary
 String getAlterTableTypeString()
           
 List<FieldSchema> getNewCols()
           
 List<String> getNewColsString()
           
 String getNewName()
           
 String getOldName()
           
 alterTableDesc.alterTableTypes getOp()
           
 Map<String,String> getProps()
           
 String getSerdeName()
           
 void setNewCols(List<FieldSchema> newCols)
           
 void setNewName(String newName)
           
 void setOldName(String oldName)
           
 void setOp(alterTableDesc.alterTableTypes op)
           
 void setProps(Map<String,String> props)
           
 void setSerdeName(String serdeName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

alterTableDesc

public alterTableDesc(String oldName,
                      String newName)
Parameters:
oldName - old name of the table
newName - new name of the table

alterTableDesc

public alterTableDesc(String name,
                      List<FieldSchema> newCols,
                      alterTableDesc.alterTableTypes alterType)
Parameters:
name - name of the table
newCols - new columns to be added

alterTableDesc

public alterTableDesc(alterTableDesc.alterTableTypes alterType)
Parameters:
alterType - type of alter op
Method Detail

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