|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HiveMetaHook
HiveMetaHook defines notification methods which are invoked as part of transactions against the metastore, allowing external catalogs such as HBase to be kept in sync with Hive's metastore.
Implementations can use MetaStoreUtils.isExternalTable(org.apache.hadoop.hive.metastore.api.Table)
to
distinguish external tables from managed tables.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void preCreateTable(Table table) throws MetaException
table
- new table definition
MetaException
void rollbackCreateTable(Table table) throws MetaException
table
- new table definition
MetaException
void commitCreateTable(Table table) throws MetaException
table
- new table definition
MetaException
void preDropTable(Table table) throws MetaException
table
- table definition
MetaException
void rollbackDropTable(Table table) throws MetaException
table
- table definition
MetaException
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 table
MetaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |