public class RenameTableOperation
extends java.lang.Object
| Constructor and Description |
|---|
RenameTableOperation(DropTableService dropTableService) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(com.hotels.hcommon.hive.metastore.client.api.CloseableMetaStoreClient client,
org.apache.hadoop.hive.metastore.api.Table from,
org.apache.hadoop.hive.metastore.api.Table to)
NOTE: assumes both `from` and `to` exist
|
public RenameTableOperation(DropTableService dropTableService)
public void execute(com.hotels.hcommon.hive.metastore.client.api.CloseableMetaStoreClient client,
org.apache.hadoop.hive.metastore.api.Table from,
org.apache.hadoop.hive.metastore.api.Table to)
throws java.lang.Exception
NOTE: assumes both `from` and `to` exist
Renames tables 'from' table into 'to' table, at the end of the operation 'from' will be gone and 'to' will be renamed.java.lang.ExceptionCopyright © 2016–2022 Expedia Group. All rights reserved.