public class HiveAlterHandler extends Object implements AlterHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
| Constructor and Description |
|---|
HiveAlterHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hive.metastore.api.Partition |
alterPartition(RawStore msdb,
Warehouse wh,
String dbname,
String name,
List<String> part_vals,
org.apache.hadoop.hive.metastore.api.Partition new_part,
org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext) |
org.apache.hadoop.hive.metastore.api.Partition |
alterPartition(RawStore msdb,
Warehouse wh,
String catName,
String dbname,
String name,
List<String> part_vals,
org.apache.hadoop.hive.metastore.api.Partition new_part,
org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext,
IHMSHandler handler)
handles alter partition
|
List<org.apache.hadoop.hive.metastore.api.Partition> |
alterPartitions(RawStore msdb,
Warehouse wh,
String dbname,
String name,
List<org.apache.hadoop.hive.metastore.api.Partition> new_parts,
org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
alterPartitions(RawStore msdb,
Warehouse wh,
String catName,
String dbname,
String name,
List<org.apache.hadoop.hive.metastore.api.Partition> new_parts,
org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext,
IHMSHandler handler)
handles alter partitions
|
void |
alterTable(RawStore msdb,
Warehouse wh,
String catName,
String dbname,
String name,
org.apache.hadoop.hive.metastore.api.Table newt,
org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext,
IHMSHandler handler)
handles alter table, the changes could be cascaded to partitions if applicable
|
org.apache.hadoop.conf.Configuration |
getConf() |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalterTablepublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic void alterTable(RawStore msdb, Warehouse wh, String catName, String dbname, String name, org.apache.hadoop.hive.metastore.api.Table newt, org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext, IHMSHandler handler) throws org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.MetaException
AlterHandleralterTable in interface AlterHandlermsdb - object to get metadatawh - Hive Warehouse where table data is storedcatName - catalog of the table being altereddbname - 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 objecthandler - HMSHandle object (required to log event notification)org.apache.hadoop.hive.metastore.api.InvalidOperationException - thrown if the newTable object is invalidorg.apache.hadoop.hive.metastore.api.MetaException - thrown if there is any other errorpublic org.apache.hadoop.hive.metastore.api.Partition alterPartition(RawStore msdb, Warehouse wh, String dbname, String name, List<String> part_vals, org.apache.hadoop.hive.metastore.api.Partition new_part, org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext) throws org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.AlreadyExistsException, org.apache.hadoop.hive.metastore.api.MetaException
alterPartition in interface AlterHandlermsdb - 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 objectorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.AlreadyExistsExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic org.apache.hadoop.hive.metastore.api.Partition alterPartition(RawStore msdb, Warehouse wh, String catName, String dbname, String name, List<String> part_vals, org.apache.hadoop.hive.metastore.api.Partition new_part, org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext, IHMSHandler handler) throws org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.AlreadyExistsException, org.apache.hadoop.hive.metastore.api.MetaException
AlterHandleralterPartition in interface AlterHandlermsdb - object to get metadatawh - physical warehouse classcatName - catalog namedbname - database of the partition being alteredname - table of the partition being alteredpart_vals - original values of the partition being alterednew_part - new partition objecthandler - HMSHandle object (required to log event notification)org.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.AlreadyExistsExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> alterPartitions(RawStore msdb, Warehouse wh, String dbname, String name, List<org.apache.hadoop.hive.metastore.api.Partition> new_parts, org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext) throws org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.AlreadyExistsException, org.apache.hadoop.hive.metastore.api.MetaException
alterPartitions in interface AlterHandlermsdb - object to get metadatadbname - database of the partition being alteredname - table of the partition being alterednew_parts - new partition listorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.AlreadyExistsExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> alterPartitions(RawStore msdb, Warehouse wh, String catName, String dbname, String name, List<org.apache.hadoop.hive.metastore.api.Partition> new_parts, org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext, IHMSHandler handler) throws org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.AlreadyExistsException, org.apache.hadoop.hive.metastore.api.MetaException
AlterHandleralterPartitions in interface AlterHandlermsdb - object to get metadatadbname - database of the partition being alteredname - table of the partition being alterednew_parts - new partition listhandler - HMSHandle object (required to log event notification)org.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.AlreadyExistsExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.