public interface AlterHandler
extends org.apache.hadoop.conf.Configurable
Modifier and Type | Method and Description |
---|---|
Partition |
alterPartition(RawStore msdb,
Warehouse wh,
String dbname,
String name,
List<String> part_vals,
Partition new_part,
EnvironmentContext environmentContext)
Deprecated.
As of release 2.2.0. Replaced by
alterPartition(RawStore, Warehouse, String,
String, String, List, Partition, EnvironmentContext, IHMSHandler)
handles alter partition |
Partition |
alterPartition(RawStore msdb,
Warehouse wh,
String catName,
String dbname,
String name,
List<String> part_vals,
Partition new_part,
EnvironmentContext environmentContext,
IHMSHandler handler)
handles alter partition
|
List<Partition> |
alterPartitions(RawStore msdb,
Warehouse wh,
String dbname,
String name,
List<Partition> new_parts,
EnvironmentContext environmentContext)
Deprecated.
As of release 3.0.0. Replaced by
alterPartitions(RawStore, Warehouse, String,
String, String, List, EnvironmentContext, IHMSHandler)
handles alter partitions |
List<Partition> |
alterPartitions(RawStore msdb,
Warehouse wh,
String catName,
String dbname,
String name,
List<Partition> new_parts,
EnvironmentContext environmentContext,
IHMSHandler handler)
handles alter partitions
|
default void |
alterTable(RawStore msdb,
Warehouse wh,
String catName,
String dbname,
String name,
Table newTable,
EnvironmentContext envContext)
Deprecated.
As of release 2.2.0. Replaced by
alterTable(RawStore, Warehouse, String,
String, String, Table, EnvironmentContext, IHMSHandler)
handles alter table, the changes could be cascaded to partitions if applicable |
void |
alterTable(RawStore msdb,
Warehouse wh,
String catName,
String dbname,
String name,
Table newTable,
EnvironmentContext envContext,
IHMSHandler handler)
handles alter table, the changes could be cascaded to partitions if applicable
|
@Deprecated default void alterTable(RawStore msdb, Warehouse wh, String catName, String dbname, String name, Table newTable, EnvironmentContext envContext) throws InvalidOperationException, MetaException
alterTable(RawStore, Warehouse, String,
String, String, Table, EnvironmentContext, IHMSHandler)
handles alter table, the changes could be cascaded to partitions if applicablemsdb
- 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.newTable
- new table objectInvalidOperationException
- thrown if the newTable object is invalidMetaException
- thrown if there is any other errorvoid alterTable(RawStore msdb, Warehouse wh, String catName, String dbname, String name, Table newTable, EnvironmentContext envContext, IHMSHandler handler) throws InvalidOperationException, MetaException
msdb
- 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.newTable
- new table objecthandler
- HMSHandle object (required to log event notification)InvalidOperationException
- thrown if the newTable object is invalidMetaException
- thrown if there is any other error@Deprecated Partition alterPartition(RawStore msdb, Warehouse wh, String dbname, String name, List<String> part_vals, Partition new_part, EnvironmentContext environmentContext) throws InvalidOperationException, InvalidObjectException, AlreadyExistsException, MetaException
alterPartition(RawStore, Warehouse, String,
String, String, List, Partition, EnvironmentContext, IHMSHandler)
handles alter partitionmsdb
- object to get metadatawh
- dbname
- 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
Partition alterPartition(RawStore msdb, Warehouse wh, String catName, String dbname, String name, List<String> part_vals, Partition new_part, EnvironmentContext environmentContext, IHMSHandler handler) throws InvalidOperationException, InvalidObjectException, AlreadyExistsException, MetaException
msdb
- 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)InvalidOperationException
InvalidObjectException
AlreadyExistsException
MetaException
@Deprecated List<Partition> alterPartitions(RawStore msdb, Warehouse wh, String dbname, String name, List<Partition> new_parts, EnvironmentContext environmentContext) throws InvalidOperationException, InvalidObjectException, AlreadyExistsException, MetaException
alterPartitions(RawStore, Warehouse, String,
String, String, List, EnvironmentContext, IHMSHandler)
handles alter partitionsmsdb
- object to get metadatawh
- dbname
- database of the partition being alteredname
- table of the partition being alterednew_parts
- new partition listInvalidOperationException
InvalidObjectException
AlreadyExistsException
MetaException
List<Partition> alterPartitions(RawStore msdb, Warehouse wh, String catName, String dbname, String name, List<Partition> new_parts, EnvironmentContext environmentContext, IHMSHandler handler) throws InvalidOperationException, InvalidObjectException, AlreadyExistsException, MetaException
msdb
- object to get metadatawh
- dbname
- database of the partition being alteredname
- table of the partition being alterednew_parts
- new partition listhandler
- HMSHandle object (required to log event notification)InvalidOperationException
InvalidObjectException
AlreadyExistsException
MetaException
Copyright © 2022 The Apache Software Foundation. All rights reserved.