public class HiveAlterHandler extends java.lang.Object implements AlterHandler
Modifier and Type | Field and Description |
---|---|
protected Configuration |
hiveConf |
Constructor and Description |
---|
HiveAlterHandler() |
Modifier and Type | Method and Description |
---|---|
Partition |
alterPartition(RawStore msdb,
Warehouse wh,
java.lang.String dbname,
java.lang.String name,
java.util.List<java.lang.String> part_vals,
Partition new_part)
handles alter partition
|
java.util.List<Partition> |
alterPartitions(RawStore msdb,
Warehouse wh,
java.lang.String dbname,
java.lang.String name,
java.util.List<Partition> new_parts)
handles alter partitions
|
void |
alterTable(RawStore msdb,
Warehouse wh,
java.lang.String dbname,
java.lang.String name,
Table newt)
handles alter table
|
Configuration |
getConf() |
void |
setConf(Configuration conf) |
public Configuration getConf()
public void setConf(Configuration conf)
public void alterTable(RawStore msdb, Warehouse wh, java.lang.String dbname, java.lang.String name, Table newt) throws InvalidOperationException, MetaException
AlterHandler
alterTable
in interface AlterHandler
msdb
- object to get metadatawh
- TODOdbname
- database of the table being alteredname
- original name of the table being altered. same as
newTable.tableName if alter op is not a rename.newt
- new table objectInvalidOperationException
- thrown if the newTable object is invalidMetaException
- thrown if there is any other erropublic Partition alterPartition(RawStore msdb, Warehouse wh, java.lang.String dbname, java.lang.String name, java.util.List<java.lang.String> part_vals, Partition new_part) throws InvalidOperationException, InvalidObjectException, AlreadyExistsException, MetaException
AlterHandler
alterPartition
in interface AlterHandler
msdb
- object to get metadatadbname
- database of the partition being alteredname
- table of the partition being alteredpart_vals
- original values of the partition being alterednew_part
- new partition objectInvalidOperationException
InvalidObjectException
AlreadyExistsException
MetaException
public java.util.List<Partition> alterPartitions(RawStore msdb, Warehouse wh, java.lang.String dbname, java.lang.String name, java.util.List<Partition> new_parts) throws InvalidOperationException, InvalidObjectException, AlreadyExistsException, MetaException
AlterHandler
alterPartitions
in interface AlterHandler
msdb
- object to get metadatadbname
- database of the partition being alteredname
- table of the partition being alteredInvalidOperationException
InvalidObjectException
AlreadyExistsException
MetaException
Copyright © 2012 The Apache Software Foundation