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 definitionMetaException
void rollbackCreateTable(Table table) throws MetaException
table
- new table definitionMetaException
void commitCreateTable(Table table) throws MetaException
table
- new table definitionMetaException
void preDropTable(Table table) throws MetaException
table
- table definitionMetaException
void rollbackDropTable(Table table) throws MetaException
table
- table definitionMetaException
void 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 tableMetaException
Copyright © 2017 The Apache Software Foundation. All rights reserved.