org.apache.hadoop.hive.metastore
Class HiveAlterHandler

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.HiveAlterHandler
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, AlterHandler

public class HiveAlterHandler
extends Object
implements AlterHandler

Hive specific implementation of alter


Constructor Summary
HiveAlterHandler()
           
 
Method Summary
 void alterTable(RawStore msdb, Warehouse wh, String dbname, String name, Table newt)
          handles alter table
 org.apache.hadoop.conf.Configuration getConf()
           
 void setConf(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiveAlterHandler

public HiveAlterHandler()
Method Detail

getConf

public org.apache.hadoop.conf.Configuration getConf()
Specified by:
getConf in interface org.apache.hadoop.conf.Configurable

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable

alterTable

public void alterTable(RawStore msdb,
                       Warehouse wh,
                       String dbname,
                       String name,
                       Table newt)
                throws InvalidOperationException,
                       MetaException
Description copied from interface: AlterHandler
handles alter table

Specified by:
alterTable in interface AlterHandler
Parameters:
msdb - object to get metadata
wh - TODO
dbname - database of the table being altered
name - original name of the table being altered. same as newTable.tableName if alter op is not a rename.
newt - new table object
Throws:
InvalidOperationException - thrown if the newTable object is invalid
MetaException - thrown if there is any other erro


Copyright © 2011 The Apache Software Foundation