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)
handles alter partition
|
List<Partition> |
alterPartitions(RawStore msdb,
Warehouse wh,
String dbname,
String name,
List<Partition> new_part)
handles alter partitions
|
void |
alterTable(RawStore msdb,
Warehouse wh,
String dbname,
String name,
Table newTable)
handles alter table
|
void |
alterTable(RawStore msdb,
Warehouse wh,
String dbname,
String name,
Table newTable,
boolean cascade)
handles alter table, the changes could be cascaded to partitions if applicable
|
void alterTable(RawStore msdb, Warehouse wh, String dbname, String name, Table newTable) throws InvalidOperationException, MetaException
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.newTable - new table objectInvalidOperationException - thrown if the newTable object is invalidMetaException - thrown if there is any other errorvoid alterTable(RawStore msdb, Warehouse wh, String dbname, String name, Table newTable, boolean cascade) throws InvalidOperationException, MetaException
msdb - object to get metadatawh - Hive Warehouse where table data is storeddbname - 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 objectcascade - if the changes will be cascaded to its partitions if applicableInvalidOperationException - thrown if the newTable object is invalidMetaException - thrown if there is any other errorPartition alterPartition(RawStore msdb, Warehouse wh, String dbname, String name, List<String> part_vals, Partition new_part) throws InvalidOperationException, InvalidObjectException, AlreadyExistsException, MetaException
msdb - 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 objectInvalidOperationExceptionInvalidObjectExceptionAlreadyExistsExceptionMetaExceptionList<Partition> alterPartitions(RawStore msdb, Warehouse wh, String dbname, String name, List<Partition> new_part) 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 listInvalidOperationExceptionInvalidObjectExceptionAlreadyExistsExceptionMetaExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.