public interface HiveMetaHook
Implementations can use MetaStoreUtils.isExternalTable(org.apache.hadoop.hive.metastore.api.Table) to
distinguish external tables from managed tables.
| Modifier and Type | Method and Description |
|---|---|
void |
commitCreateTable(Table table)
Called after successfully adding a new table definition to the metastore
during CREATE TABLE.
|
void |
commitDropTable(Table table,
boolean deleteData)
Called after successfully removing a table definition from the metastore
during DROP TABLE.
|
void |
preCreateTable(Table table)
Called before a new table definition is added to the metastore
during CREATE TABLE.
|
void |
preDropTable(Table table)
Called before a table definition is removed from the metastore
during DROP TABLE.
|
void |
rollbackCreateTable(Table table)
Called after failure adding a new table definition to the metastore
during CREATE TABLE.
|
void |
rollbackDropTable(Table table)
Called after failure removing a table definition from the metastore
during DROP TABLE.
|
void preCreateTable(Table table) throws MetaException
table - new table definitionMetaExceptionvoid rollbackCreateTable(Table table) throws MetaException
table - new table definitionMetaExceptionvoid commitCreateTable(Table table) throws MetaException
table - new table definitionMetaExceptionvoid preDropTable(Table table) throws MetaException
table - table definitionMetaExceptionvoid rollbackDropTable(Table table) throws MetaException
table - table definitionMetaExceptionvoid commitDropTable(Table table, boolean deleteData) throws MetaException
table - table definitiondeleteData - whether to delete data as well; this should typically
be ignored in the case of an external tableMetaExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.