org.apache.hadoop.hive.metastore
Interface AlterHandler

All Superinterfaces:
org.apache.hadoop.conf.Configurable
All Known Implementing Classes:
HiveAlterHandler

public interface AlterHandler
extends org.apache.hadoop.conf.Configurable

Interface for Alter Table and Alter Partition code


Method Summary
 void alterTable(RawStore msdb, Warehouse wh, String dbname, String name, Table newTable)
          handles alter table
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Method Detail

alterTable

void alterTable(RawStore msdb,
                Warehouse wh,
                String dbname,
                String name,
                Table newTable)
                throws InvalidOperationException,
                       MetaException
handles alter table

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.
newTable - 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